UNPKG

intl-hmessage

Version:
17 lines (16 loc) 436 B
declare type Plugin = { getCurrentLang: () => string; listen: (cb: Plugin["getCurrentLang"]) => void; }; export default class Lang { private _currentLang; private _default; private _updateMeta; static plugin: Plugin; static use(plugin: Plugin): void; constructor(defaultLang?: string); updateLang(lang: string): void; getLang(): any; setUpdateMeta(updateMeta: () => void): void; } export {};