@itwin/core-i18n 5.7.0-dev.7 → 5.7.0-dev.9
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/lib/cjs/test/ITwinLocalization.test.js +3 -3
- package/lib/cjs/test/ITwinLocalization.test.js.map +1 -1
- package/lib/cjs/test/webpack/bundled-tests.instrumented.js +3 -3
- package/lib/cjs/test/webpack/bundled-tests.instrumented.js.map +1 -1
- package/lib/cjs/test/webpack/bundled-tests.js +3 -3
- package/lib/cjs/test/webpack/bundled-tests.js.map +1 -1
- package/lib/esm/test/ITwinLocalization.test.js +3 -3
- package/lib/esm/test/ITwinLocalization.test.js.map +1 -1
- package/package.json +6 -6
|
@@ -25629,7 +25629,7 @@ describe("ITwinLocalization", () => {
|
|
|
25629
25629
|
// For interpolation options, see: https://www.i18next.com/translation-function/interpolation
|
|
25630
25630
|
describe("#getLocalizedString", () => {
|
|
25631
25631
|
before(async () => {
|
|
25632
|
-
localization = new ITwinLocalization_1.ITwinLocalization();
|
|
25632
|
+
localization = new ITwinLocalization_1.ITwinLocalization({ initOptions: { lng: "en-US" } });
|
|
25633
25633
|
await localization.initialize(["Default", "Test"]);
|
|
25634
25634
|
germanLocalization = new ITwinLocalization_1.ITwinLocalization({ initOptions: { lng: "de" } });
|
|
25635
25635
|
await germanLocalization.initialize(["Default", "Test"]);
|
|
@@ -26202,11 +26202,11 @@ describe("ITwinLocalization", () => {
|
|
|
26202
26202
|
// On current Linux CI environment, "@POSIX" is appended as a suffix to the locale,
|
|
26203
26203
|
// which means that the en-US locales do not get loaded.
|
|
26204
26204
|
if (!navigator.userAgent.toLowerCase().includes("linux")) {
|
|
26205
|
-
it("
|
|
26205
|
+
it("default list includes en and the user's language", async () => {
|
|
26206
26206
|
localization = new ITwinLocalization_1.ITwinLocalization();
|
|
26207
26207
|
await localization.initialize([]);
|
|
26208
26208
|
languages = localization.getLanguageList();
|
|
26209
|
-
chai_1.assert.isTrue(languages.includes(
|
|
26209
|
+
chai_1.assert.isTrue(languages.includes(navigator.language));
|
|
26210
26210
|
chai_1.assert.isTrue(languages.includes("en"));
|
|
26211
26211
|
});
|
|
26212
26212
|
}
|