mirror of
https://github.com/logto-io/logto.git
synced 2025-02-17 22:04:19 -05:00
fix(ui): fix i18n content (#2406)
This commit is contained in:
parent
fc63b14974
commit
c2e70e662a
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
import { SignInIdentifier } from '@logto/schemas';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useParams, useLocation } from 'react-router-dom';
|
||||
import { is } from 'superstruct';
|
||||
|
||||
|
@ -15,6 +16,7 @@ type Parameters = {
|
|||
};
|
||||
|
||||
const SignInPassword = () => {
|
||||
const { t } = useTranslation();
|
||||
const { method } = useParams<Parameters>();
|
||||
const { state } = useLocation();
|
||||
const { signInMethods } = useSieMethods();
|
||||
|
@ -42,7 +44,7 @@ const SignInPassword = () => {
|
|||
title="description.enter_password"
|
||||
description="description.enter_password_for"
|
||||
descriptionProps={{
|
||||
method: `description.${method === SignInIdentifier.Email ? 'email' : 'phone_number'}`,
|
||||
method: t(`description.${method === SignInIdentifier.Email ? 'email' : 'phone_number'}`),
|
||||
value:
|
||||
method === SignInIdentifier.Email
|
||||
? value
|
||||
|
|
Loading…
Add table
Reference in a new issue