This commit is contained in:
hailin 2025-04-18 13:36:55 +08:00
parent c108dc2998
commit 04c13f3f19
1 changed files with 1 additions and 1 deletions

View File

@ -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 的语言