diff --git a/src/shared.ts b/src/shared.ts index 68449d8..9eaed34 100644 --- a/src/shared.ts +++ b/src/shared.ts @@ -42,6 +42,7 @@ export function toLocale(val: string | Intl.Locale): Intl.Locale { */ export function validateLangTag(lang: string): boolean { try { + // @ts-ignore NOTE: https://github.com/microsoft/TypeScript/pull/56079 Intl.getCanonicalLocales(lang) return true } catch {