mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
Remove all *.intl.json files. Move strings to the corresponding views. Implement custom command to build i18n/en.json file
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"passwordTitle": "Enter password",
|
||||
"signInButton": "Sign in",
|
||||
"forgotPassword": "Forgot password",
|
||||
"accountPassword": "Account password",
|
||||
"rememberMe": "Remember me on this device"
|
||||
}
|
||||
@@ -1,6 +1,12 @@
|
||||
import { defineMessages } from 'react-intl';
|
||||
import factory from '../factory';
|
||||
import Body from './PasswordBody';
|
||||
import messages from './Password.intl.json';
|
||||
|
||||
const messages = defineMessages({
|
||||
passwordTitle: 'Enter password',
|
||||
signInButton: 'Sign in',
|
||||
forgotPassword: 'Forgot password',
|
||||
});
|
||||
|
||||
export default factory({
|
||||
title: messages.passwordTitle,
|
||||
|
||||
@@ -3,9 +3,14 @@ import icons from 'app/components/ui/icons.scss';
|
||||
import { Input, Checkbox } from 'app/components/ui/form';
|
||||
import BaseAuthBody from 'app/components/auth/BaseAuthBody';
|
||||
import authStyles from 'app/components/auth/auth.scss';
|
||||
import { defineMessages } from 'react-intl';
|
||||
|
||||
import styles from './password.scss';
|
||||
import messages from './Password.intl.json';
|
||||
|
||||
const messages = defineMessages({
|
||||
accountPassword: 'Account password',
|
||||
rememberMe: 'Remember me on this device',
|
||||
});
|
||||
|
||||
export default class PasswordBody extends BaseAuthBody {
|
||||
static displayName = 'PasswordBody';
|
||||
|
||||
Reference in New Issue
Block a user