mirror of
https://github.com/logto-io/logto.git
synced 2025-01-20 21:32:31 -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 { diff } from 'deep-object-diff';
|
||||||
import get from 'lodash.get';
|
import get from 'lodash.get';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
import { snakeCase } from 'snake-case';
|
||||||
|
|
||||||
import DiffSegment from './DiffSegment';
|
import DiffSegment from './DiffSegment';
|
||||||
import * as styles from './index.module.scss';
|
import * as styles from './index.module.scss';
|
||||||
|
@ -29,7 +30,7 @@ const SignUpDiffSection = ({ before, after, isAfter = false }: Props) => {
|
||||||
<li>
|
<li>
|
||||||
<DiffSegment hasChanged={hasChanged('identifier')} isAfter={isAfter}>
|
<DiffSegment hasChanged={hasChanged('identifier')} isAfter={isAfter}>
|
||||||
{t('sign_in_exp.sign_up_and_sign_in.identifiers', {
|
{t('sign_in_exp.sign_up_and_sign_in.identifiers', {
|
||||||
context: identifier.toLowerCase(),
|
context: snakeCase(identifier),
|
||||||
})}
|
})}
|
||||||
</DiffSegment>
|
</DiffSegment>
|
||||||
{hasAuthentication && ' ('}
|
{hasAuthentication && ' ('}
|
||||||
|
|
Loading…
Add table
Reference in a new issue