1 | export declare const LOCALE_CHANGED = "bearer-locale-changed";
|
2 | export declare class I18n {
|
3 | private _locale;
|
4 | private _dictionnary;
|
5 | |
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | load: (integrationName: string | null, dictionnary: IntegrationTranlsationEntry | TransLationObject | Promise<IntegrationTranlsationEntry | TransLationObject>, { locale }?: Partial<{
|
12 | locale: string;
|
13 | }>) => Promise<void>;
|
14 | private localeChanged;
|
15 | get: (integrationName: string | null, key: string, options?: Partial<{
|
16 | locale: string;
|
17 | }>) => TransLationValue;
|
18 | |
19 |
|
20 |
|
21 | locale: string;
|
22 | }
|
23 | declare const i18n: I18n;
|
24 | declare type IntegrationTranlsationEntry = {
|
25 | [integrationName: string]: TransLationObject;
|
26 | };
|
27 | declare type TransLationValue = string | number | TransLationObject;
|
28 | interface TransLationObject {
|
29 | [key: string]: TransLationValue;
|
30 | }
|
31 | export default i18n;
|