This commit is contained in:
hailin 2025-04-18 00:31:11 +08:00
parent 575ae56fc5
commit 7e1a1597c2
1 changed files with 5 additions and 2 deletions

View File

@ -167,9 +167,12 @@ export default async function Login({
return redirect("/login?message=Check email to reset password")
}
const { t, resources } = await initTranslations(locale, ['translation']);
// 解构获取 locale 字符串
const localeString = locale.locale || locale;
const { t, resources } = await initTranslations(localeString, ['translation']);
// 打印翻译内容确认是否正常加载
console.log("...............locale: ", {locale});
console.log("...............locale: ", {localeString});
console.log("Translation for login.email: ", t("login.email"));
return (