UNPKG

@nodesecure/i18n

Version:
16 lines 825 B
import { type Languages } from "./constants.js"; import { taggedString } from "./utils.js"; export declare const CONSTANTS: { CACHE_PATH: string; CURRENT_LANG: Languages; LANG_UPDATED: boolean; }; export declare function getLocalLang(): Promise<Languages>; export declare function setLocalLang(selectedLang: Languages): Promise<void>; export declare function getLanguages(): Promise<string[]>; export declare function getToken(token: string, ...params: any[]): Promise<string>; export declare function getTokenSync(token: string, ...params: any[]): string; export declare function extend(extendLanguage: Languages, opts?: Record<string, any>): void; export declare function extendFromSystemPath(languagesDirPath: string): Promise<void>; export { taggedString, type Languages }; //# sourceMappingURL=index.d.ts.map