@gravitee/ui-components 3.25.3-typescript-dc20727 → 3.25.3-typescript-6f4b14e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/lib/i18n.d.ts +2 -2
- package/src/lib/i18n.js +1 -1
package/package.json
CHANGED
package/src/lib/i18n.d.ts
CHANGED
|
@@ -19,9 +19,9 @@ export function getLanguage(): string;
|
|
|
19
19
|
/**
|
|
20
20
|
* @param {string} lang - Translation language code
|
|
21
21
|
* @param {object} translations - Translation values by key
|
|
22
|
-
* @param {
|
|
22
|
+
* @param {string} label - Lang label
|
|
23
23
|
*/
|
|
24
|
-
export function addTranslations(lang: string, translations: object, label:
|
|
24
|
+
export function addTranslations(lang: string, translations: object, label: string): void;
|
|
25
25
|
/**
|
|
26
26
|
* @returns {object} - All defined languages (key: human name and value: code)
|
|
27
27
|
*/
|
package/src/lib/i18n.js
CHANGED
|
@@ -61,7 +61,7 @@ export function getLanguage() {
|
|
|
61
61
|
/**
|
|
62
62
|
* @param {string} lang - Translation language code
|
|
63
63
|
* @param {object} translations - Translation values by key
|
|
64
|
-
* @param {
|
|
64
|
+
* @param {string} label - Lang label
|
|
65
65
|
*/
|
|
66
66
|
export function addTranslations(lang, translations, label) {
|
|
67
67
|
i18n._translations[lang] = { ...{ LANGUAGE: label }, ...translations };
|