@brightspace-ui/intl 3.27.1 → 3.28.0
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/README.md +9 -0
- package/lang/ar.js +3 -0
- package/lang/cy.js +3 -0
- package/lang/da.js +3 -0
- package/lang/de.js +3 -0
- package/lang/en-gb.js +3 -0
- package/lang/en.js +3 -0
- package/lang/es-es.js +3 -0
- package/lang/es.js +3 -0
- package/lang/fr-fr.js +3 -0
- package/lang/fr-on.js +3 -0
- package/lang/fr.js +3 -0
- package/lang/haw.js +3 -0
- package/lang/hi.js +3 -0
- package/lang/ja.js +3 -0
- package/lang/ko.js +3 -0
- package/lang/mi.js +3 -0
- package/lang/nl.js +3 -0
- package/lang/pt.js +3 -0
- package/lang/sv.js +3 -0
- package/lang/tr.js +3 -0
- package/lang/zh-cn.js +3 -0
- package/lang/zh-tw.js +3 -0
- package/lib/localize.js +16 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -388,6 +388,15 @@ const localizer = new Localize({
|
|
|
388
388
|
});
|
|
389
389
|
```
|
|
390
390
|
|
|
391
|
+
#### localizeCommon
|
|
392
|
+
|
|
393
|
+
The localized value of the following common terms can be accessed using `localizeCommon(name)`:
|
|
394
|
+
|
|
395
|
+
Navigation
|
|
396
|
+
* `navigation:back:title` (Back)
|
|
397
|
+
* `navigation:next:title` (Next)
|
|
398
|
+
* `navigation:previous:title` (Previous)
|
|
399
|
+
|
|
391
400
|
#### localizeCharacter
|
|
392
401
|
|
|
393
402
|
The localized value of the following characters can be accessed using `localizeCharacter(char)`:
|
package/lang/ar.js
CHANGED
|
@@ -12,4 +12,7 @@ export default {
|
|
|
12
12
|
"intl-common:characters:pipe": "الخط العمودي", // short name or description of the "|" character
|
|
13
13
|
"intl-common:characters:questionMark": "علامة الاستفهام", // short name or description of the "?" character
|
|
14
14
|
"intl-common:characters:quotationMark": "علامة الاقتباس", // short name or description of the '"' character
|
|
15
|
+
"intl-common:navigation:back:title": "الخلف", // term for navigating back to the previous page (in Title Case)
|
|
16
|
+
"intl-common:navigation:next:title": "التالي", // term for navigating to the next page or item (in Title Case)
|
|
17
|
+
"intl-common:navigation:previous:title": "السابق", // term for navigating to the previous page or item (in Title Case)
|
|
15
18
|
};
|
package/lang/cy.js
CHANGED
|
@@ -12,4 +12,7 @@ export default {
|
|
|
12
12
|
"intl-common:characters:pipe": "pibell", // short name or description of the "|" character
|
|
13
13
|
"intl-common:characters:questionMark": "gofynnod", // short name or description of the "?" character
|
|
14
14
|
"intl-common:characters:quotationMark": "dyfynnod", // short name or description of the '"' character
|
|
15
|
+
"intl-common:navigation:back:title": "Yn ôl", // term for navigating back to the previous page (in Title Case)
|
|
16
|
+
"intl-common:navigation:next:title": "Nesaf", // term for navigating to the next page or item (in Title Case)
|
|
17
|
+
"intl-common:navigation:previous:title": "Blaenorol", // term for navigating to the previous page or item (in Title Case)
|
|
15
18
|
};
|
package/lang/da.js
CHANGED
|
@@ -12,4 +12,7 @@ export default {
|
|
|
12
12
|
"intl-common:characters:pipe": "lodret streg", // short name or description of the "|" character
|
|
13
13
|
"intl-common:characters:questionMark": "spørgsmålstegn", // short name or description of the "?" character
|
|
14
14
|
"intl-common:characters:quotationMark": "anførselstegn", // short name or description of the '"' character
|
|
15
|
+
"intl-common:navigation:back:title": "Tilbage", // term for navigating back to the previous page (in Title Case)
|
|
16
|
+
"intl-common:navigation:next:title": "Næste", // term for navigating to the next page or item (in Title Case)
|
|
17
|
+
"intl-common:navigation:previous:title": "Forrige", // term for navigating to the previous page or item (in Title Case)
|
|
15
18
|
};
|
package/lang/de.js
CHANGED
|
@@ -12,4 +12,7 @@ export default {
|
|
|
12
12
|
"intl-common:characters:pipe": "Senkrechter Strich", // short name or description of the "|" character
|
|
13
13
|
"intl-common:characters:questionMark": "Fragezeichen", // short name or description of the "?" character
|
|
14
14
|
"intl-common:characters:quotationMark": "Anführungszeichen", // short name or description of the '"' character
|
|
15
|
+
"intl-common:navigation:back:title": "Zurück", // term for navigating back to the previous page (in Title Case)
|
|
16
|
+
"intl-common:navigation:next:title": "Weiter", // term for navigating to the next page or item (in Title Case)
|
|
17
|
+
"intl-common:navigation:previous:title": "Zurück", // term for navigating to the previous page or item (in Title Case)
|
|
15
18
|
};
|
package/lang/en-gb.js
CHANGED
|
@@ -12,4 +12,7 @@ export default {
|
|
|
12
12
|
"intl-common:characters:pipe": "pipe", // short name or description of the "|" character
|
|
13
13
|
"intl-common:characters:questionMark": "question mark", // short name or description of the "?" character
|
|
14
14
|
"intl-common:characters:quotationMark": "quotation mark", // short name or description of the '"' character
|
|
15
|
+
"intl-common:navigation:back:title": "Back", // term for navigating back to the previous page (in Title Case)
|
|
16
|
+
"intl-common:navigation:next:title": "Next", // term for navigating to the next page or item (in Title Case)
|
|
17
|
+
"intl-common:navigation:previous:title": "Previous", // term for navigating to the previous page or item (in Title Case)
|
|
15
18
|
};
|
package/lang/en.js
CHANGED
|
@@ -12,4 +12,7 @@ export default {
|
|
|
12
12
|
"intl-common:characters:pipe": "pipe", // short name or description of the "|" character
|
|
13
13
|
"intl-common:characters:questionMark": "question mark", // short name or description of the "?" character
|
|
14
14
|
"intl-common:characters:quotationMark": "quotation mark", // short name or description of the '"' character
|
|
15
|
+
"intl-common:navigation:back:title": "Back", // term for navigating back to the previous page (in Title Case)
|
|
16
|
+
"intl-common:navigation:next:title": "Next", // term for navigating to the next page or item (in Title Case)
|
|
17
|
+
"intl-common:navigation:previous:title": "Previous", // term for navigating to the previous page or item (in Title Case)
|
|
15
18
|
};
|
package/lang/es-es.js
CHANGED
|
@@ -12,4 +12,7 @@ export default {
|
|
|
12
12
|
"intl-common:characters:pipe": "pleca", // short name or description of the "|" character
|
|
13
13
|
"intl-common:characters:questionMark": "signo de interrogación", // short name or description of the "?" character
|
|
14
14
|
"intl-common:characters:quotationMark": "comillas", // short name or description of the '"' character
|
|
15
|
+
"intl-common:navigation:back:title": "Anterior", // term for navigating back to the previous page (in Title Case)
|
|
16
|
+
"intl-common:navigation:next:title": "Siguiente", // term for navigating to the next page or item (in Title Case)
|
|
17
|
+
"intl-common:navigation:previous:title": "Anterior", // term for navigating to the previous page or item (in Title Case)
|
|
15
18
|
};
|
package/lang/es.js
CHANGED
|
@@ -12,4 +12,7 @@ export default {
|
|
|
12
12
|
"intl-common:characters:pipe": "Barra vertical", // short name or description of the "|" character
|
|
13
13
|
"intl-common:characters:questionMark": "signo de interrogación", // short name or description of the "?" character
|
|
14
14
|
"intl-common:characters:quotationMark": "comilla", // short name or description of the '"' character
|
|
15
|
+
"intl-common:navigation:back:title": "Anterior", // term for navigating back to the previous page (in Title Case)
|
|
16
|
+
"intl-common:navigation:next:title": "Siguiente", // term for navigating to the next page or item (in Title Case)
|
|
17
|
+
"intl-common:navigation:previous:title": "Anterior", // term for navigating to the previous page or item (in Title Case)
|
|
15
18
|
};
|
package/lang/fr-fr.js
CHANGED
|
@@ -12,4 +12,7 @@ export default {
|
|
|
12
12
|
"intl-common:characters:pipe": "barre verticale", // short name or description of the "|" character
|
|
13
13
|
"intl-common:characters:questionMark": "point d’interrogation", // short name or description of the "?" character
|
|
14
14
|
"intl-common:characters:quotationMark": "guillemet anglais", // short name or description of the '"' character
|
|
15
|
+
"intl-common:navigation:back:title": "Retour", // term for navigating back to the previous page (in Title Case)
|
|
16
|
+
"intl-common:navigation:next:title": "Suivant", // term for navigating to the next page or item (in Title Case)
|
|
17
|
+
"intl-common:navigation:previous:title": "Précédent", // term for navigating to the previous page or item (in Title Case)
|
|
15
18
|
};
|
package/lang/fr-on.js
CHANGED
|
@@ -12,4 +12,7 @@ export default {
|
|
|
12
12
|
"intl-common:characters:pipe": "barre verticale", // short name or description of the "|" character
|
|
13
13
|
"intl-common:characters:questionMark": "point d'interrogation", // short name or description of the "?" character
|
|
14
14
|
"intl-common:characters:quotationMark": "guillemet", // short name or description of the '"' character
|
|
15
|
+
"intl-common:navigation:back:title": "Retour", // term for navigating back to the previous page (in Title Case)
|
|
16
|
+
"intl-common:navigation:next:title": "Suivant", // term for navigating to the next page or item (in Title Case)
|
|
17
|
+
"intl-common:navigation:previous:title": "Précédent", // term for navigating to the previous page or item (in Title Case)
|
|
15
18
|
};
|
package/lang/fr.js
CHANGED
|
@@ -12,4 +12,7 @@ export default {
|
|
|
12
12
|
"intl-common:characters:pipe": "barre verticale", // short name or description of the "|" character
|
|
13
13
|
"intl-common:characters:questionMark": "point d'interrogation", // short name or description of the "?" character
|
|
14
14
|
"intl-common:characters:quotationMark": "guillemet", // short name or description of the '"' character
|
|
15
|
+
"intl-common:navigation:back:title": "Retour", // term for navigating back to the previous page (in Title Case)
|
|
16
|
+
"intl-common:navigation:next:title": "Suivant", // term for navigating to the next page or item (in Title Case)
|
|
17
|
+
"intl-common:navigation:previous:title": "Précédent", // term for navigating to the previous page or item (in Title Case)
|
|
15
18
|
};
|
package/lang/haw.js
CHANGED
|
@@ -12,4 +12,7 @@ export default {
|
|
|
12
12
|
"intl-common:characters:pipe": "paipu", // short name or description of the "|" character
|
|
13
13
|
"intl-common:characters:questionMark": "kaha ninau", // short name or description of the "?" character
|
|
14
14
|
"intl-common:characters:quotationMark": "kaha puana'i", // short name or description of the '"' character
|
|
15
|
+
"intl-common:navigation:back:title": "Ke kua", // term for navigating back to the previous page (in Title Case)
|
|
16
|
+
"intl-common:navigation:next:title": "Aʻe", // term for navigating to the next page or item (in Title Case)
|
|
17
|
+
"intl-common:navigation:previous:title": "Mamua", // term for navigating to the previous page or item (in Title Case)
|
|
15
18
|
};
|
package/lang/hi.js
CHANGED
|
@@ -12,4 +12,7 @@ export default {
|
|
|
12
12
|
"intl-common:characters:pipe": "पाइप", // short name or description of the "|" character
|
|
13
13
|
"intl-common:characters:questionMark": "प्रश्नवाचक चिह्न", // short name or description of the "?" character
|
|
14
14
|
"intl-common:characters:quotationMark": "उद्धरण चिह्न", // short name or description of the '"' character
|
|
15
|
+
"intl-common:navigation:back:title": "वापस जाएँ", // term for navigating back to the previous page (in Title Case)
|
|
16
|
+
"intl-common:navigation:next:title": "अगला", // term for navigating to the next page or item (in Title Case)
|
|
17
|
+
"intl-common:navigation:previous:title": "पिछला", // term for navigating to the previous page or item (in Title Case)
|
|
15
18
|
};
|
package/lang/ja.js
CHANGED
|
@@ -12,4 +12,7 @@ export default {
|
|
|
12
12
|
"intl-common:characters:pipe": "縦棒", // short name or description of the "|" character
|
|
13
13
|
"intl-common:characters:questionMark": "疑問符", // short name or description of the "?" character
|
|
14
14
|
"intl-common:characters:quotationMark": "引用符", // short name or description of the '"' character
|
|
15
|
+
"intl-common:navigation:back:title": "戻る", // term for navigating back to the previous page (in Title Case)
|
|
16
|
+
"intl-common:navigation:next:title": "次へ", // term for navigating to the next page or item (in Title Case)
|
|
17
|
+
"intl-common:navigation:previous:title": "前へ", // term for navigating to the previous page or item (in Title Case)
|
|
15
18
|
};
|
package/lang/ko.js
CHANGED
|
@@ -12,4 +12,7 @@ export default {
|
|
|
12
12
|
"intl-common:characters:pipe": "수직선", // short name or description of the "|" character
|
|
13
13
|
"intl-common:characters:questionMark": "물음표", // short name or description of the "?" character
|
|
14
14
|
"intl-common:characters:quotationMark": "따옴표", // short name or description of the '"' character
|
|
15
|
+
"intl-common:navigation:back:title": "뒤로", // term for navigating back to the previous page (in Title Case)
|
|
16
|
+
"intl-common:navigation:next:title": "다음", // term for navigating to the next page or item (in Title Case)
|
|
17
|
+
"intl-common:navigation:previous:title": "이전", // term for navigating to the previous page or item (in Title Case)
|
|
15
18
|
};
|
package/lang/mi.js
CHANGED
|
@@ -12,4 +12,7 @@ export default {
|
|
|
12
12
|
"intl-common:characters:pipe": "paipa", // short name or description of the "|" character
|
|
13
13
|
"intl-common:characters:questionMark": "tohu pātai", // short name or description of the "?" character
|
|
14
14
|
"intl-common:characters:quotationMark": "tohu whakatikatika", // short name or description of the '"' character
|
|
15
|
+
"intl-common:navigation:back:title": "Whakamuri", // term for navigating back to the previous page (in Title Case)
|
|
16
|
+
"intl-common:navigation:next:title": "Panuku", // term for navigating to the next page or item (in Title Case)
|
|
17
|
+
"intl-common:navigation:previous:title": "Tōmua", // term for navigating to the previous page or item (in Title Case)
|
|
15
18
|
};
|
package/lang/nl.js
CHANGED
|
@@ -12,4 +12,7 @@ export default {
|
|
|
12
12
|
"intl-common:characters:pipe": "sluisteken", // short name or description of the "|" character
|
|
13
13
|
"intl-common:characters:questionMark": "vraagteken", // short name or description of the "?" character
|
|
14
14
|
"intl-common:characters:quotationMark": "aanhalingsteken", // short name or description of the '"' character
|
|
15
|
+
"intl-common:navigation:back:title": "Terug", // term for navigating back to the previous page (in Title Case)
|
|
16
|
+
"intl-common:navigation:next:title": "Volgende", // term for navigating to the next page or item (in Title Case)
|
|
17
|
+
"intl-common:navigation:previous:title": "Vorige", // term for navigating to the previous page or item (in Title Case)
|
|
15
18
|
};
|
package/lang/pt.js
CHANGED
|
@@ -12,4 +12,7 @@ export default {
|
|
|
12
12
|
"intl-common:characters:pipe": "pipe", // short name or description of the "|" character
|
|
13
13
|
"intl-common:characters:questionMark": "ponto de interrogação", // short name or description of the "?" character
|
|
14
14
|
"intl-common:characters:quotationMark": "aspas", // short name or description of the '"' character
|
|
15
|
+
"intl-common:navigation:back:title": "Voltar", // term for navigating back to the previous page (in Title Case)
|
|
16
|
+
"intl-common:navigation:next:title": "Avançar", // term for navigating to the next page or item (in Title Case)
|
|
17
|
+
"intl-common:navigation:previous:title": "Anterior", // term for navigating to the previous page or item (in Title Case)
|
|
15
18
|
};
|
package/lang/sv.js
CHANGED
|
@@ -12,4 +12,7 @@ export default {
|
|
|
12
12
|
"intl-common:characters:pipe": "lodstreck", // short name or description of the "|" character
|
|
13
13
|
"intl-common:characters:questionMark": "frågetecken", // short name or description of the "?" character
|
|
14
14
|
"intl-common:characters:quotationMark": "citattecken", // short name or description of the '"' character
|
|
15
|
+
"intl-common:navigation:back:title": "Tillbaka", // term for navigating back to the previous page (in Title Case)
|
|
16
|
+
"intl-common:navigation:next:title": "Nästa", // term for navigating to the next page or item (in Title Case)
|
|
17
|
+
"intl-common:navigation:previous:title": "Föregående", // term for navigating to the previous page or item (in Title Case)
|
|
15
18
|
};
|
package/lang/tr.js
CHANGED
|
@@ -12,4 +12,7 @@ export default {
|
|
|
12
12
|
"intl-common:characters:pipe": "düz çizgi", // short name or description of the "|" character
|
|
13
13
|
"intl-common:characters:questionMark": "soru işareti", // short name or description of the "?" character
|
|
14
14
|
"intl-common:characters:quotationMark": "tırnak işareti", // short name or description of the '"' character
|
|
15
|
+
"intl-common:navigation:back:title": "Geri", // term for navigating back to the previous page (in Title Case)
|
|
16
|
+
"intl-common:navigation:next:title": "Sonraki", // term for navigating to the next page or item (in Title Case)
|
|
17
|
+
"intl-common:navigation:previous:title": "Önceki", // term for navigating to the previous page or item (in Title Case)
|
|
15
18
|
};
|
package/lang/zh-cn.js
CHANGED
|
@@ -12,4 +12,7 @@ export default {
|
|
|
12
12
|
"intl-common:characters:pipe": "管道符号", // short name or description of the "|" character
|
|
13
13
|
"intl-common:characters:questionMark": "问号", // short name or description of the "?" character
|
|
14
14
|
"intl-common:characters:quotationMark": "引号", // short name or description of the '"' character
|
|
15
|
+
"intl-common:navigation:back:title": "返回", // term for navigating back to the previous page (in Title Case)
|
|
16
|
+
"intl-common:navigation:next:title": "下一个", // term for navigating to the next page or item (in Title Case)
|
|
17
|
+
"intl-common:navigation:previous:title": "上一页", // term for navigating to the previous page or item (in Title Case)
|
|
15
18
|
};
|
package/lang/zh-tw.js
CHANGED
|
@@ -12,4 +12,7 @@ export default {
|
|
|
12
12
|
"intl-common:characters:pipe": "豎線", // short name or description of the "|" character
|
|
13
13
|
"intl-common:characters:questionMark": "問號", // short name or description of the "?" character
|
|
14
14
|
"intl-common:characters:quotationMark": "英文雙引號", // short name or description of the '"' character
|
|
15
|
+
"intl-common:navigation:back:title": "返回", // term for navigating back to the previous page (in Title Case)
|
|
16
|
+
"intl-common:navigation:next:title": "下一個", // term for navigating to the next page or item (in Title Case)
|
|
17
|
+
"intl-common:navigation:previous:title": "上一個", // term for navigating to the previous page or item (in Title Case)
|
|
15
18
|
};
|
package/lib/localize.js
CHANGED
|
@@ -20,6 +20,11 @@ const characterMap = new Map([
|
|
|
20
20
|
['?', 'questionMark'],
|
|
21
21
|
['"', 'quotationMark']
|
|
22
22
|
]);
|
|
23
|
+
const commonTerms = [
|
|
24
|
+
'navigation:back:title',
|
|
25
|
+
'navigation:next:title',
|
|
26
|
+
'navigation:previous:title'
|
|
27
|
+
];
|
|
23
28
|
const commonResources = new Map();
|
|
24
29
|
export let commonResourcesImportCount = 0;
|
|
25
30
|
|
|
@@ -101,6 +106,17 @@ export const getLocalizeClass = (superclass = class {}) => class LocalizeClass e
|
|
|
101
106
|
return value;
|
|
102
107
|
}
|
|
103
108
|
|
|
109
|
+
localizeCommon(name) {
|
|
110
|
+
if (commonTerms.indexOf(name) === -1) {
|
|
111
|
+
throw new Error(`localizeCommon() term not found: "${name}"`);
|
|
112
|
+
}
|
|
113
|
+
const value = this.localize(`intl-common:${name}`);
|
|
114
|
+
if (value.length === 0) {
|
|
115
|
+
throw new Error('localizeCommon() cannot be used unless loadCommon in localizeConfig is enabled');
|
|
116
|
+
}
|
|
117
|
+
return value;
|
|
118
|
+
}
|
|
119
|
+
|
|
104
120
|
localizeHTML(name, replacements = {}) {
|
|
105
121
|
|
|
106
122
|
const { language, value } = this.localize.resources?.[name] ?? {};
|
package/package.json
CHANGED