0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

fix(console): sign-up identifier translation (#2422)

This commit is contained in:
Xiao Yijun 2022-11-14 10:53:49 +08:00 committed by GitHub
parent 482b13fdd9
commit b9207d1892
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,7 @@ import type { SignUp } from '@logto/schemas';
import { diff } from 'deep-object-diff';
import get from 'lodash.get';
import { useTranslation } from 'react-i18next';
import { snakeCase } from 'snake-case';
import DiffSegment from './DiffSegment';
import * as styles from './index.module.scss';
@ -29,7 +30,7 @@ const SignUpDiffSection = ({ before, after, isAfter = false }: Props) => {
<li>
<DiffSegment hasChanged={hasChanged('identifier')} isAfter={isAfter}>
{t('sign_in_exp.sign_up_and_sign_in.identifiers', {
context: identifier.toLowerCase(),
context: snakeCase(identifier),
})}
</DiffSegment>
{hasAuthentication && ' ('}