This commit is contained in:
parent
c108dc2998
commit
04c13f3f19
|
|
@ -45,7 +45,7 @@ export function LanguageSwitcher() {
|
|||
localStorage.setItem('preferred-language', newLocale)
|
||||
|
||||
// 验证 cookie 是否成功写入
|
||||
console.log('[LanguageSwitcher] Read back to check if cookie value saved?', cookieValue)
|
||||
console.log('[LanguageSwitcher] Read back to check if cookie value saved?', document.cookie)
|
||||
const cookieValue = document.cookie
|
||||
|
||||
// 更新 i18n 的语言
|
||||
|
|
|
|||
Loading…
Reference in New Issue