1 | /**
|
2 | * Export I18n APIs
|
3 | */
|
4 | export declare class I18n {
|
5 | /**
|
6 | * @static
|
7 | * @method
|
8 | * Configure I18n part
|
9 | * @param {Object} config - Configuration of the I18n
|
10 | */
|
11 | static configure(config: any): any;
|
12 | static getModuleName(): string;
|
13 | /**
|
14 | * @static
|
15 | * @method
|
16 | * Create an instance of I18n for the library
|
17 | */
|
18 | static createInstance(): void;
|
19 | /**
|
20 | * @static @method
|
21 | * Explicitly setting language
|
22 | * @param {String} lang
|
23 | */
|
24 | static setLanguage(lang: any): any;
|
25 | /**
|
26 | * @static @method
|
27 | * Get value
|
28 | * @param {String} key
|
29 | * @param {String} defVal - Default value
|
30 | */
|
31 | static get(key: any, defVal?: any): any;
|
32 | /**
|
33 | * @static
|
34 | * @method
|
35 | * Add vocabularies for one language
|
36 | * @param {String} langurage - Language of the dictionary
|
37 | * @param {Object} vocabularies - Object that has key-value as dictionary entry
|
38 | */
|
39 | static putVocabulariesForLanguage(language: any, vocabularies: any): any;
|
40 | /**
|
41 | * @static
|
42 | * @method
|
43 | * Add vocabularies for one language
|
44 | * @param {Object} vocabularies - Object that has language as key,
|
45 | * vocabularies of each language as value
|
46 | */
|
47 | static putVocabularies(vocabularies: any): any;
|
48 | static checkConfig(): boolean;
|
49 | }
|