@arcgis/components-utils 4.32.0-next.71 → 4.32.0-next.72

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/dist/index.cjs CHANGED
@@ -362,9 +362,6 @@ async function fetchBundle(locale, path) {
362
362
  if (typeof process === "object" && process.env.NODE_ENV !== "production") {
363
363
  const is404ViteFallback = String(error).includes(`Unexpected token '<', "<!doctype "... is not valid JSON`);
364
364
  if (is404ViteFallback) {
365
- if (filePath.includes("calcite")) {
366
- return {};
367
- }
368
365
  console.error(`[404] Localization strings not found at ${filePath}`);
369
366
  } else {
370
367
  console.error(`Error fetching localization strings at ${filePath}`, error);
@@ -414,14 +411,10 @@ async function updateComponentLocaleState(element, assetsPath, assetName = eleme
414
411
  const { lang, t9nLocale } = getElementLocales(element);
415
412
  const t9nAssetsPath = `${assetsPath}/${assetName}/t9n`;
416
413
  const prefix = `messages.`;
417
- let t9nStrings = (
414
+ const t9nStrings = (
418
415
  // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
419
416
  assetName === null ? {} : await fetchT9nStringsBundle(t9nLocale, t9nAssetsPath, prefix)
420
417
  );
421
- if (assetName !== null && Object.keys(t9nStrings).length === 0) {
422
- const prefix2 = `${assetName}.t9n.`;
423
- t9nStrings = await fetchT9nStringsBundle(t9nLocale, t9nAssetsPath, prefix2);
424
- }
425
418
  return { lang, t9nLocale, t9nStrings };
426
419
  }
427
420
 
package/dist/index.js CHANGED
@@ -299,9 +299,6 @@ async function fetchBundle(locale, path) {
299
299
  if (typeof process === "object" && process.env.NODE_ENV !== "production") {
300
300
  const is404ViteFallback = String(error).includes(`Unexpected token '<', "<!doctype "... is not valid JSON`);
301
301
  if (is404ViteFallback) {
302
- if (filePath.includes("calcite")) {
303
- return {};
304
- }
305
302
  console.error(`[404] Localization strings not found at ${filePath}`);
306
303
  } else {
307
304
  console.error(`Error fetching localization strings at ${filePath}`, error);
@@ -351,14 +348,10 @@ async function updateComponentLocaleState(element, assetsPath, assetName = eleme
351
348
  const { lang, t9nLocale } = getElementLocales(element);
352
349
  const t9nAssetsPath = `${assetsPath}/${assetName}/t9n`;
353
350
  const prefix = `messages.`;
354
- let t9nStrings = (
351
+ const t9nStrings = (
355
352
  // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
356
353
  assetName === null ? {} : await fetchT9nStringsBundle(t9nLocale, t9nAssetsPath, prefix)
357
354
  );
358
- if (assetName !== null && Object.keys(t9nStrings).length === 0) {
359
- const prefix2 = `${assetName}.t9n.`;
360
- t9nStrings = await fetchT9nStringsBundle(t9nLocale, t9nAssetsPath, prefix2);
361
- }
362
355
  return { lang, t9nLocale, t9nStrings };
363
356
  }
364
357
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/components-utils",
3
- "version": "4.32.0-next.71",
3
+ "version": "4.32.0-next.72",
4
4
  "description": "Collection of common internal patterns and utilities for ArcGIS Maps SDK for JavaScript components.",
5
5
  "homepage": "https://developers.arcgis.com/javascript/latest/",
6
6
  "sideEffects": false,