We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Intl.getCanonicalLocales
1 parent 089c69d commit db58bddCopy full SHA for db58bdd
utils/getLanguage.ts
@@ -55,7 +55,7 @@ function linkLocale(locale: string) {
55
try {
56
linkedLocale = Intl.getCanonicalLocales(locale)[0]
57
} catch (error) {
58
- console.log(`${error.toString()}\n`)
+ console.log(`${error.toString()}, invalid language tag: "${locale}"\n`)
59
}
60
switch (linkedLocale) {
61
case 'zh-TW':
0 commit comments