0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-24 22:41:28 -05:00

fix(console): correct sentence cases in the sie change alert modal (#2378)

This commit is contained in:
Xiao Yijun 2022-11-10 16:01:18 +08:00 committed by GitHub
parent 28d4414320
commit 19137fa400
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View file

@ -70,7 +70,11 @@ const SignInDiffSection = ({ before, after, isAfter = false }: Props) => {
hasChanged={hasAuthenticationChanged(identifierKey, 'verificationCode')}
isAfter={isAfter}
>
{t('sign_in_exp.sign_up_and_sign_in.sign_in.verification_code_auth')}
{needDisjunction
? t(
'sign_in_exp.sign_up_and_sign_in.sign_in.verification_code_auth'
).toLocaleLowerCase()
: t('sign_in_exp.sign_up_and_sign_in.sign_in.verification_code_auth')}
</DiffSegment>
)}
{hasAuthentication && ')'}

View file

@ -41,7 +41,11 @@ const SignUpDiffSection = ({ before, after, isAfter = false }: Props) => {
{needConjunction && ` ${String(t('sign_in_exp.sign_up_and_sign_in.and'))} `}
{verify && (
<DiffSegment hasChanged={hasChanged('verify')} isAfter={isAfter}>
{t('sign_in_exp.sign_up_and_sign_in.sign_up.verify_at_sign_up_option')}
{needConjunction
? t(
'sign_in_exp.sign_up_and_sign_in.sign_up.verify_at_sign_up_option'
).toLowerCase()
: t('sign_in_exp.sign_up_and_sign_in.sign_up.verify_at_sign_up_option')}
</DiffSegment>
)}
{hasAuthentication && ')'}