genesys-spark 4.199.1 → 4.199.2

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -178,12 +178,13 @@ function domLocaleOverride(localeString) {
178
178
  }
179
179
  }
180
180
  function browserLocaleOverride(localeString) {
181
- var _a, _b;
181
+ var _a;
182
+ const browserLang = (_a = navigator.language) === null || _a === void 0 ? void 0 : _a.toLowerCase();
182
183
  switch (localeString.toLowerCase()) {
183
184
  case "zh-cn":
184
- return Boolean((_a = navigator.language) === null || _a === void 0 ? void 0 : _a.toLowerCase().startsWith("zh-sg"));
185
+ return Boolean((browserLang === null || browserLang === void 0 ? void 0 : browserLang.startsWith("zh-")) && (browserLang === null || browserLang === void 0 ? void 0 : browserLang.endsWith("-sg")));
185
186
  case "zh-tw":
186
- return Boolean((_b = navigator.language) === null || _b === void 0 ? void 0 : _b.toLowerCase().startsWith("zh-hk"));
187
+ return Boolean((browserLang === null || browserLang === void 0 ? void 0 : browserLang.startsWith("zh-")) && (browserLang === null || browserLang === void 0 ? void 0 : browserLang.endsWith("-hk")));
187
188
  default:
188
189
  return false;
189
190
  }
@@ -220,8 +221,8 @@ var sparkIntl = /*#__PURE__*/Object.freeze({
220
221
  relativeTimeFormat: relativeTimeFormat
221
222
  });
222
223
 
223
- const COMPONENT_ASSET_PREFIX = "/spark-components/build-assets/4.199.1-920/genesys-webcomponents/";
224
- const CHART_COMPONENT_ASSET_PREFIX = "/spark-components/build-assets/4.199.1-920/chart/genesys-chart-webcomponents/";
224
+ const COMPONENT_ASSET_PREFIX = "/spark-components/build-assets/4.199.2-921/genesys-webcomponents/";
225
+ const CHART_COMPONENT_ASSET_PREFIX = "/spark-components/build-assets/4.199.2-921/chart/genesys-chart-webcomponents/";
225
226
  function loadSparkFonts(opts) {
226
227
  const fontOrigin = getFontOrigin();
227
228
  const flareFonts = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "genesys-spark",
3
- "version": "4.199.1",
3
+ "version": "4.199.2",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",