API_UNKNOWN_LOCALE
An unknown or invalid locale was provided to the API.
Possible causes
- Invalid user input.
- Misconfigured provider(s).
How it's thrown
try {
Locale.from('hello-world');
} catch {
throw new UnknownLocaleError();
}Thrown from
packages/errors/src/index.ts:297
* throw new UnknownLocaleError('zz-ZZ');apps/storefront/src/app/[domain]/[locale]/countries/page.tsx:80
throw new UnknownLocaleError();apps/storefront/src/app/[domain]/[locale]/countries/page.tsx:85
throw new UnknownLocaleError();apps/storefront/src/app/[domain]/[locale]/countries/page.tsx:101
throw new UnknownLocaleError(`Locale ${code} is not supported by ${actionShop.domain}`);apps/storefront/src/cart/transport.ts:29
if (!locale) throw new UnknownLocaleError(localeCode);apps/storefront/src/components/header/header-search.tsx:84
throw new UnknownLocaleError(locale.code);apps/storefront/src/utils/locale/locale.ts:115
throw new UnknownLocaleError(data);apps/storefront/src/utils/locale/locale.ts:126
throw new UnknownLocaleError(data);apps/storefront/src/utils/locale/locale.ts:131
throw new UnknownLocaleError(data);