Skip to content

Commit

Permalink
chore: add ts-ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Mar 2, 2024
1 parent 7867c66 commit e1e6bea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e1e6bea

Please sign in to comment.