fix(i18n): standardize locale formatting for Intl APIs

This commit is contained in:
CaIon
2026-07-07 13:40:06 +08:00
parent 5cbb7b0be1
commit 8f31b30598
6 changed files with 35 additions and 7 deletions
-1
View File
@@ -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)