This commit is contained in:
parent
7314da256b
commit
ec642b06b6
|
|
@ -13,7 +13,7 @@ export function LanguageSwitcher() {
|
||||||
|
|
||||||
const { i18n } = useTranslation() // 获取 i18n 实例
|
const { i18n } = useTranslation() // 获取 i18n 实例
|
||||||
|
|
||||||
console.log('[LanguageSwitcher]=>Current url Pathname=', pathname)
|
console.log('[LanguageSwitcher]====>Current url:', pathname)
|
||||||
|
|
||||||
const currentLocale = pathname.split('/')[1] || i18nConfig.defaultLocale
|
const currentLocale = pathname.split('/')[1] || i18nConfig.defaultLocale
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue