API_UNKNOWN_LOCALE

An unknown or invalid locale was provided to the API.

UnknownLocaleErrorHTTP 404ApiErrorKind

Possible causes

  • Invalid user input.
  • Misconfigured provider(s).

How it's thrown

@nordcom/commerce-errors
try {
    Locale.from('hello-world');
} catch {
    throw new UnknownLocaleError();
}

Thrown from

packages/errors/src/index.ts:297
* throw new UnknownLocaleError('zz-ZZ');
View ↗
apps/storefront/src/app/[domain]/[locale]/countries/page.tsx:80
throw new UnknownLocaleError();
View ↗
apps/storefront/src/app/[domain]/[locale]/countries/page.tsx:85
throw new UnknownLocaleError();
View ↗
apps/storefront/src/app/[domain]/[locale]/countries/page.tsx:101
throw new UnknownLocaleError(`Locale ${code} is not supported by ${actionShop.domain}`);
View ↗
apps/storefront/src/cart/transport.ts:29
if (!locale) throw new UnknownLocaleError(localeCode);
View ↗
apps/storefront/src/components/header/header-search.tsx:84
throw new UnknownLocaleError(locale.code);
View ↗
apps/storefront/src/utils/locale/locale.ts:115
throw new UnknownLocaleError(data);
View ↗
apps/storefront/src/utils/locale/locale.ts:126
throw new UnknownLocaleError(data);
View ↗
apps/storefront/src/utils/locale/locale.ts:131
throw new UnknownLocaleError(data);
View ↗

On this page