This commit is contained in:
hailin 2025-04-18 00:33:01 +08:00
parent 7e1a1597c2
commit a9ae787cac
1 changed files with 2 additions and 2 deletions

View File

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