fix(i18n): standardize locale formatting for Intl APIs
This commit is contained in:
@@ -39,7 +39,6 @@ export function LanguageSwitcher() {
|
||||
const { i18n, t } = useTranslation()
|
||||
const user = useAuthStore((s) => s.auth.user)
|
||||
const currentLanguage = normalizeInterfaceLanguage(i18n.language)
|
||||
console.log('Current interface language: %s', currentLanguage)
|
||||
const handleChangeLanguage = useCallback(
|
||||
async (code: string) => {
|
||||
await i18n.changeLanguage(code)
|
||||
|
||||
Reference in New Issue
Block a user