@brightspace-ui/intl 3.41.0 → 3.42.1

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/lang/ar.js CHANGED
@@ -14,6 +14,7 @@ export default {
14
14
  "intl-common:actions:finish": "إنهاء", // finish action (in Title Case)
15
15
  "intl-common:actions:more": "المزيد", // more action (in Title Case)
16
16
  "intl-common:actions:print": "طباعة", // print action (in Title Case)
17
+ "intl-common:actions:reload": "إعادة التحميل", // reload action (in Title Case)
17
18
  "intl-common:actions:remove": "إزالة", // remove action (in Title Case)
18
19
  "intl-common:actions:save": "حفظ", // save action (in Title Case)
19
20
  "intl-common:actions:saveAndClose": "حفظ وإغلاق", // save and close action (in Title Case)
package/lang/ca.js CHANGED
@@ -14,6 +14,7 @@ export default {
14
14
  "intl-common:actions:finish": "Finalitzar", // finish action (in Title Case)
15
15
  "intl-common:actions:more": "Més", // more action (in Title Case)
16
16
  "intl-common:actions:print": "Imprimir", // print action (in Title Case)
17
+ "intl-common:actions:reload": "Recarregar", // reload action (in Title Case)
17
18
  "intl-common:actions:remove": "Eliminar", // remove action (in Title Case)
18
19
  "intl-common:actions:save": "Desar", // save action (in Title Case)
19
20
  "intl-common:actions:saveAndClose": "Desar i tancar", // save and close action (in Title Case)
package/lang/cy.js CHANGED
@@ -14,6 +14,7 @@ export default {
14
14
  "intl-common:actions:finish": "Gorffen", // finish action (in Title Case)
15
15
  "intl-common:actions:more": "Mwy", // more action (in Title Case)
16
16
  "intl-common:actions:print": "Argraffu", // print action (in Title Case)
17
+ "intl-common:actions:reload": "Ail-lwytho", // reload action (in Title Case)
17
18
  "intl-common:actions:remove": "Tynnu", // remove action (in Title Case)
18
19
  "intl-common:actions:save": "Cadw", // save action (in Title Case)
19
20
  "intl-common:actions:saveAndClose": "Cadw a Chau", // save and close action (in Title Case)
package/lang/da.js CHANGED
@@ -14,6 +14,7 @@ export default {
14
14
  "intl-common:actions:finish": "Afslut", // finish action (in Title Case)
15
15
  "intl-common:actions:more": "Flere", // more action (in Title Case)
16
16
  "intl-common:actions:print": "Udskriv", // print action (in Title Case)
17
+ "intl-common:actions:reload": "Genindlæs", // reload action (in Title Case)
17
18
  "intl-common:actions:remove": "Fjern", // remove action (in Title Case)
18
19
  "intl-common:actions:save": "Gem", // save action (in Title Case)
19
20
  "intl-common:actions:saveAndClose": "Gem og luk", // save and close action (in Title Case)
package/lang/de.js CHANGED
@@ -14,6 +14,7 @@ export default {
14
14
  "intl-common:actions:finish": "Fertigstellen", // finish action (in Title Case)
15
15
  "intl-common:actions:more": "Mehr", // more action (in Title Case)
16
16
  "intl-common:actions:print": "Drucken", // print action (in Title Case)
17
+ "intl-common:actions:reload": "Neu laden", // reload action (in Title Case)
17
18
  "intl-common:actions:remove": "Entfernen", // remove action (in Title Case)
18
19
  "intl-common:actions:save": "Speichern", // save action (in Title Case)
19
20
  "intl-common:actions:saveAndClose": "Speichern und schließen", // save and close action (in Title Case)
package/lang/en-gb.js CHANGED
@@ -14,6 +14,7 @@ export default {
14
14
  "intl-common:actions:finish": "Finish", // finish action (in Title Case)
15
15
  "intl-common:actions:more": "More", // more action (in Title Case)
16
16
  "intl-common:actions:print": "Print", // print action (in Title Case)
17
+ "intl-common:actions:reload": "Reload", // reload action (in Title Case)
17
18
  "intl-common:actions:remove": "Remove", // remove action (in Title Case)
18
19
  "intl-common:actions:save": "Save", // save action (in Title Case)
19
20
  "intl-common:actions:saveAndClose": "Save and Close", // save and close action (in Title Case)
package/lang/en.js CHANGED
@@ -14,6 +14,7 @@ export default {
14
14
  "intl-common:actions:finish": "Finish", // finish action (in Title Case)
15
15
  "intl-common:actions:more": "More", // more action (in Title Case)
16
16
  "intl-common:actions:print": "Print", // print action (in Title Case)
17
+ "intl-common:actions:reload": "Reload", // reload action (in Title Case)
17
18
  "intl-common:actions:remove": "Remove", // remove action (in Title Case)
18
19
  "intl-common:actions:save": "Save", // save action (in Title Case)
19
20
  "intl-common:actions:saveAndClose": "Save and Close", // save and close action (in Title Case)
package/lang/es-es.js CHANGED
@@ -14,6 +14,7 @@ export default {
14
14
  "intl-common:actions:finish": "Finalizar", // finish action (in Title Case)
15
15
  "intl-common:actions:more": "Más", // more action (in Title Case)
16
16
  "intl-common:actions:print": "Imprimir", // print action (in Title Case)
17
+ "intl-common:actions:reload": "Volver a cargar", // reload action (in Title Case)
17
18
  "intl-common:actions:remove": "Eliminar", // remove action (in Title Case)
18
19
  "intl-common:actions:save": "Guardar", // save action (in Title Case)
19
20
  "intl-common:actions:saveAndClose": "Guardar y cerrar", // save and close action (in Title Case)
package/lang/es.js CHANGED
@@ -14,6 +14,7 @@ export default {
14
14
  "intl-common:actions:finish": "Finalizar", // finish action (in Title Case)
15
15
  "intl-common:actions:more": "Más", // more action (in Title Case)
16
16
  "intl-common:actions:print": "Imprimir", // print action (in Title Case)
17
+ "intl-common:actions:reload": "Volver a cargar", // reload action (in Title Case)
17
18
  "intl-common:actions:remove": "Eliminar", // remove action (in Title Case)
18
19
  "intl-common:actions:save": "Guardar", // save action (in Title Case)
19
20
  "intl-common:actions:saveAndClose": "Guardar y cerrar", // save and close action (in Title Case)
package/lang/fr-fr.js CHANGED
@@ -14,6 +14,7 @@ export default {
14
14
  "intl-common:actions:finish": "Terminer", // finish action (in Title Case)
15
15
  "intl-common:actions:more": "Plus", // more action (in Title Case)
16
16
  "intl-common:actions:print": "Imprimer", // print action (in Title Case)
17
+ "intl-common:actions:reload": "Recharger", // reload action (in Title Case)
17
18
  "intl-common:actions:remove": "Supprimer", // remove action (in Title Case)
18
19
  "intl-common:actions:save": "Enregistrer", // save action (in Title Case)
19
20
  "intl-common:actions:saveAndClose": "Enregistrer et fermer", // save and close action (in Title Case)
package/lang/fr-on.js CHANGED
@@ -14,6 +14,7 @@ export default {
14
14
  "intl-common:actions:finish": "Terminer", // finish action (in Title Case)
15
15
  "intl-common:actions:more": "Plus", // more action (in Title Case)
16
16
  "intl-common:actions:print": "Imprimer", // print action (in Title Case)
17
+ "intl-common:actions:reload": "Recharger", // reload action (in Title Case)
17
18
  "intl-common:actions:remove": "Supprimer", // remove action (in Title Case)
18
19
  "intl-common:actions:save": "Enregistrer", // save action (in Title Case)
19
20
  "intl-common:actions:saveAndClose": "Enregistrer et fermer", // save and close action (in Title Case)
package/lang/fr.js CHANGED
@@ -14,6 +14,7 @@ export default {
14
14
  "intl-common:actions:finish": "Terminer", // finish action (in Title Case)
15
15
  "intl-common:actions:more": "Plus", // more action (in Title Case)
16
16
  "intl-common:actions:print": "Imprimer", // print action (in Title Case)
17
+ "intl-common:actions:reload": "Recharger", // reload action (in Title Case)
17
18
  "intl-common:actions:remove": "Supprimer", // remove action (in Title Case)
18
19
  "intl-common:actions:save": "Enregistrer", // save action (in Title Case)
19
20
  "intl-common:actions:saveAndClose": "Enregistrer et fermer", // save and close action (in Title Case)
package/lang/haw.js CHANGED
@@ -14,6 +14,7 @@ export default {
14
14
  "intl-common:actions:finish": "Hoʻopau", // finish action (in Title Case)
15
15
  "intl-common:actions:more": "Ê»Oi aku", // more action (in Title Case)
16
16
  "intl-common:actions:print": "Paʻi", // print action (in Title Case)
17
+ "intl-common:actions:reload": "Hoʻouka hou", // reload action (in Title Case)
17
18
  "intl-common:actions:remove": "Wehe", // remove action (in Title Case)
18
19
  "intl-common:actions:save": "Mālama", // save action (in Title Case)
19
20
  "intl-common:actions:saveAndClose": "Mālama a pani", // save and close action (in Title Case)
package/lang/hi.js CHANGED
@@ -14,6 +14,7 @@ export default {
14
14
  "intl-common:actions:finish": "समाप्त करें", // finish action (in Title Case)
15
15
  "intl-common:actions:more": "अधिक", // more action (in Title Case)
16
16
  "intl-common:actions:print": "प्रिंट करें", // print action (in Title Case)
17
+ "intl-common:actions:reload": "रीलोड करें", // reload action (in Title Case)
17
18
  "intl-common:actions:remove": "निकालें", // remove action (in Title Case)
18
19
  "intl-common:actions:save": "सेव करें", // save action (in Title Case)
19
20
  "intl-common:actions:saveAndClose": "सेव करके बंद करें", // save and close action (in Title Case)
package/lang/ja.js CHANGED
@@ -14,6 +14,7 @@ export default {
14
14
  "intl-common:actions:finish": "完了", // finish action (in Title Case)
15
15
  "intl-common:actions:more": "詳細を表示", // more action (in Title Case)
16
16
  "intl-common:actions:print": "印刷", // print action (in Title Case)
17
+ "intl-common:actions:reload": "再読み込み", // reload action (in Title Case)
17
18
  "intl-common:actions:remove": "削除", // remove action (in Title Case)
18
19
  "intl-common:actions:save": "保存", // save action (in Title Case)
19
20
  "intl-common:actions:saveAndClose": "保存して閉じる", // save and close action (in Title Case)
package/lang/ko.js CHANGED
@@ -14,6 +14,7 @@ export default {
14
14
  "intl-common:actions:finish": "마침", // finish action (in Title Case)
15
15
  "intl-common:actions:more": "더 보기", // more action (in Title Case)
16
16
  "intl-common:actions:print": "인쇄", // print action (in Title Case)
17
+ "intl-common:actions:reload": "다시 로드", // reload action (in Title Case)
17
18
  "intl-common:actions:remove": "제거", // remove action (in Title Case)
18
19
  "intl-common:actions:save": "저장", // save action (in Title Case)
19
20
  "intl-common:actions:saveAndClose": "저장 및 닫기", // save and close action (in Title Case)
package/lang/mi.js CHANGED
@@ -14,6 +14,7 @@ export default {
14
14
  "intl-common:actions:finish": "Mutu", // finish action (in Title Case)
15
15
  "intl-common:actions:more": "Ä’tahi atu", // more action (in Title Case)
16
16
  "intl-common:actions:print": "Tā", // print action (in Title Case)
17
+ "intl-common:actions:reload": "Tāuta anō", // reload action (in Title Case)
17
18
  "intl-common:actions:remove": "Tango", // remove action (in Title Case)
18
19
  "intl-common:actions:save": "Tiaki", // save action (in Title Case)
19
20
  "intl-common:actions:saveAndClose": "Tiaki ka Kati", // save and close action (in Title Case)
package/lang/nl.js CHANGED
@@ -14,6 +14,7 @@ export default {
14
14
  "intl-common:actions:finish": "Voltooien", // finish action (in Title Case)
15
15
  "intl-common:actions:more": "Meer", // more action (in Title Case)
16
16
  "intl-common:actions:print": "Afdrukken", // print action (in Title Case)
17
+ "intl-common:actions:reload": "Opnieuw laden", // reload action (in Title Case)
17
18
  "intl-common:actions:remove": "Verwijderen", // remove action (in Title Case)
18
19
  "intl-common:actions:save": "Opslaan", // save action (in Title Case)
19
20
  "intl-common:actions:saveAndClose": "Opslaan en sluiten", // save and close action (in Title Case)
package/lang/pt.js CHANGED
@@ -14,6 +14,7 @@ export default {
14
14
  "intl-common:actions:finish": "Concluir", // finish action (in Title Case)
15
15
  "intl-common:actions:more": "Mais", // more action (in Title Case)
16
16
  "intl-common:actions:print": "Imprimir", // print action (in Title Case)
17
+ "intl-common:actions:reload": "Recarregar", // reload action (in Title Case)
17
18
  "intl-common:actions:remove": "Remover", // remove action (in Title Case)
18
19
  "intl-common:actions:save": "Salvar", // save action (in Title Case)
19
20
  "intl-common:actions:saveAndClose": "Salvar e Fechar", // save and close action (in Title Case)
package/lang/sv.js CHANGED
@@ -14,6 +14,7 @@ export default {
14
14
  "intl-common:actions:finish": "Slutför", // finish action (in Title Case)
15
15
  "intl-common:actions:more": "Mer", // more action (in Title Case)
16
16
  "intl-common:actions:print": "Skriv ut", // print action (in Title Case)
17
+ "intl-common:actions:reload": "Uppdatera", // reload action (in Title Case)
17
18
  "intl-common:actions:remove": "Ta bort", // remove action (in Title Case)
18
19
  "intl-common:actions:save": "Spara", // save action (in Title Case)
19
20
  "intl-common:actions:saveAndClose": "Spara och stäng", // save and close action (in Title Case)
package/lang/th.js CHANGED
@@ -14,6 +14,7 @@ export default {
14
14
  "intl-common:actions:finish": "เสร็จสิ้น", // finish action (in Title Case)
15
15
  "intl-common:actions:more": "เพิ่มเติม", // more action (in Title Case)
16
16
  "intl-common:actions:print": "พิมพ์", // print action (in Title Case)
17
+ "intl-common:actions:reload": "โหลดใหม่", // reload action (in Title Case)
17
18
  "intl-common:actions:remove": "ลบ", // remove action (in Title Case)
18
19
  "intl-common:actions:save": "บันทึก", // save action (in Title Case)
19
20
  "intl-common:actions:saveAndClose": "บันทึกและปิด", // save and close action (in Title Case)
package/lang/tr.js CHANGED
@@ -14,6 +14,7 @@ export default {
14
14
  "intl-common:actions:finish": "Bitir", // finish action (in Title Case)
15
15
  "intl-common:actions:more": "Daha Fazla", // more action (in Title Case)
16
16
  "intl-common:actions:print": "Yazdır", // print action (in Title Case)
17
+ "intl-common:actions:reload": "Yeniden Yükle", // reload action (in Title Case)
17
18
  "intl-common:actions:remove": "Kaldır", // remove action (in Title Case)
18
19
  "intl-common:actions:save": "Kaydet", // save action (in Title Case)
19
20
  "intl-common:actions:saveAndClose": "Kaydet ve Kapat", // save and close action (in Title Case)
package/lang/vi.js CHANGED
@@ -14,6 +14,7 @@ export default {
14
14
  "intl-common:actions:finish": "Xong", // finish action (in Title Case)
15
15
  "intl-common:actions:more": "Thêm", // more action (in Title Case)
16
16
  "intl-common:actions:print": "In", // print action (in Title Case)
17
+ "intl-common:actions:reload": "Tải lại", // reload action (in Title Case)
17
18
  "intl-common:actions:remove": "Loại bỏ", // remove action (in Title Case)
18
19
  "intl-common:actions:save": "Lưu", // save action (in Title Case)
19
20
  "intl-common:actions:saveAndClose": "Lưu và đóng", // save and close action (in Title Case)
package/lang/zh-cn.js CHANGED
@@ -14,6 +14,7 @@ export default {
14
14
  "intl-common:actions:finish": "完成", // finish action (in Title Case)
15
15
  "intl-common:actions:more": "更多", // more action (in Title Case)
16
16
  "intl-common:actions:print": "打印", // print action (in Title Case)
17
+ "intl-common:actions:reload": "重新加载", // reload action (in Title Case)
17
18
  "intl-common:actions:remove": "移除", // remove action (in Title Case)
18
19
  "intl-common:actions:save": "保存", // save action (in Title Case)
19
20
  "intl-common:actions:saveAndClose": "保存并关闭", // save and close action (in Title Case)
package/lang/zh-tw.js CHANGED
@@ -14,6 +14,7 @@ export default {
14
14
  "intl-common:actions:finish": "完成", // finish action (in Title Case)
15
15
  "intl-common:actions:more": "更多", // more action (in Title Case)
16
16
  "intl-common:actions:print": "列印", // print action (in Title Case)
17
+ "intl-common:actions:reload": "重新載入", // reload action (in Title Case)
17
18
  "intl-common:actions:remove": "移除", // remove action (in Title Case)
18
19
  "intl-common:actions:save": "儲存", // save action (in Title Case)
19
20
  "intl-common:actions:saveAndClose": "儲存並關閉", // save and close action (in Title Case)
@@ -1,7 +1,6 @@
1
+ import { defaultLocale, resolveSupportedLocale } from './supported.js';
1
2
  import { getDocumentLocaleSettings } from '../common.js';
2
3
 
3
- import { resolveSupportedLocale } from './supported.js';
4
-
5
4
  const localeDataTarget = {};
6
5
 
7
6
  // block deletions and existing property redefinitions
@@ -21,7 +20,7 @@ Object.defineProperty(localeDataTarget, 'finally', { value: (...args) => localeD
21
20
 
22
21
  async function setLocaleData() {
23
22
  if (currentLocale === documentLocaleSettings.language) return;
24
- const resolvedLanguage = resolveSupportedLocale(documentLocaleSettings.language);
23
+ const resolvedLanguage = resolveSupportedLocale(documentLocaleSettings.language || documentLocaleSettings.fallbackLanguage || defaultLocale);
25
24
  const newData = deepFreeze((await import(`./locales/${resolvedLanguage}.js`)).default);
26
25
 
27
26
  Object.keys(newData).forEach(k => localeDataTarget[k] = newData[k]);
@@ -39,19 +39,21 @@ export const supportedLocales = supportedLocalesDetails.map(l => l.code);
39
39
  export function resolveSupportedLocale(localeTags) {
40
40
  localeTags = [].concat(localeTags);
41
41
 
42
- for (const localeTag of localeTags) {
43
- const localeTagLower = localeTag.toLowerCase();
44
- const locale = supportedLocalesDetails.find(l => [l.overrideCode, l.code].includes(localeTagLower));
45
- if (locale) {
46
- return locale.overrideCode || locale.source;
42
+ if (localeTags.length) {
43
+ for (const localeTag of localeTags) {
44
+ const localeTagLower = localeTag.toLowerCase();
45
+ const locale = supportedLocalesDetails.find(l => [l.overrideCode, l.code].includes(localeTagLower));
46
+ if (locale) {
47
+ return locale.overrideCode || locale.source;
48
+ }
47
49
  }
48
- }
49
50
 
50
- for (const localeTag of localeTags) {
51
- const lang = localeTag.split('-')[0];
52
- const locale = supportedLocalesDetails.find(l => l.source === lang);
53
- if (locale) {
54
- return locale.overrideCode || locale.source;
51
+ for (const localeTag of localeTags) {
52
+ const lang = localeTag.split('-')[0];
53
+ const locale = supportedLocalesDetails.find(l => l.source === lang);
54
+ if (locale) {
55
+ return locale.overrideCode || locale.source;
56
+ }
55
57
  }
56
58
  }
57
59
  return defaultLocale;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/intl",
3
- "version": "3.41.0",
3
+ "version": "3.42.1",
4
4
  "description": "Internationalization APIs for number, date, time and file size formatting and parsing in D2L Brightspace.",
5
5
  "main": "lib/number.js",
6
6
  "type": "module",