This commit is contained in:
hailin 2025-04-22 22:11:37 +08:00
parent 7314da256b
commit ec642b06b6
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ export function LanguageSwitcher() {
const { i18n } = useTranslation() // 获取 i18n 实例
console.log('[LanguageSwitcher]=>Current url Pathname=', pathname)
console.log('[LanguageSwitcher]====>Current url:', pathname)
const currentLocale = pathname.split('/')[1] || i18nConfig.defaultLocale