Const
Read-only list of every locale tag the catalog ships templates for. Useful for building locale switchers in UIs.
import { SUPPORTED_LOCALES } from "nationid/i18n";SUPPORTED_LOCALES.includes(navigator.language.slice(0, 2) as never); Copy
import { SUPPORTED_LOCALES } from "nationid/i18n";SUPPORTED_LOCALES.includes(navigator.language.slice(0, 2) as never);
Read-only list of every locale tag the catalog ships templates for. Useful for building locale switchers in UIs.