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:
parent
482b13fdd9
commit
b9207d1892
1 changed files with 2 additions and 1 deletions
|
@ -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 && ' ('}
|
||||
|
|
Loading…
Reference in a new issue