This commit is contained in:
parent
575ae56fc5
commit
7e1a1597c2
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Reference in New Issue