@kryptogo/kryptogokit-sdk-react
Version:
KryptogoKit offers a comprehensive web3 wallet solution with seamless KryptoGO Auth integration and multi-wallet connection support. Designed for users. Built for developers.
24 lines (23 loc) • 862 B
TypeScript
interface TranslationOptions {
rawKeyIfTranslationMissing?: boolean;
}
type GenericTranslationObject = Record<string, any>;
export declare class I18n {
listeners: Set<() => void>;
defaultLocale: string;
enableFallback: boolean;
locale: string;
private cachedLocales;
translations: GenericTranslationObject;
constructor(localeTranslations: Record<string, GenericTranslationObject>);
private missingMessage;
private flattenTranslation;
private translateWithReplacements;
t(key: string, replacements?: Record<string, string>, options?: TranslationOptions): string;
isLocaleCached(locale: string): boolean;
updateLocale(locale: string): void;
setTranslations(locale: string, translations: GenericTranslationObject): void;
private notifyListeners;
onChange(fn: () => void): () => void;
}
export {};