@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.
@@ -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("english language list includes en and en-US", async () => {
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("en-US"));
26209
+ chai_1.assert.isTrue(languages.includes(navigator.language));
26210
26210
  chai_1.assert.isTrue(languages.includes("en"));
26211
26211
  });
26212
26212
  }