diff --git a/utils/getLanguage.ts b/utils/getLanguage.ts index c96f7c7e..0334f634 100644 --- a/utils/getLanguage.ts +++ b/utils/getLanguage.ts @@ -55,7 +55,7 @@ function linkLocale(locale: string) { try { linkedLocale = Intl.getCanonicalLocales(locale)[0] } catch (error) { - console.log(`${error.toString()}\n`) + console.log(`${error.toString()}, invalid language tag: "${locale}"\n`) } switch (linkedLocale) { case 'zh-TW':