diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-03-25 00:50:37 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-03-25 00:50:37 -0700 |
commit | 6bee8cb1944677f8c3ede0a0bf799c92b86e08a0 (patch) | |
tree | 23ce61c628eac7cb5cb97eb52bc920841a94d4e4 /modern/src/LoginPage.js | |
parent | b10607f96ad72f5f971fbd867eeeeb86380f79cb (diff) | |
download | trackermap-web-6bee8cb1944677f8c3ede0a0bf799c92b86e08a0.tar.gz trackermap-web-6bee8cb1944677f8c3ede0a0bf799c92b86e08a0.tar.bz2 trackermap-web-6bee8cb1944677f8c3ede0a0bf799c92b86e08a0.zip |
Simple localization support
Diffstat (limited to 'modern/src/LoginPage.js')
-rw-r--r-- | modern/src/LoginPage.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modern/src/LoginPage.js b/modern/src/LoginPage.js index c094fa3b..8104aa34 100644 --- a/modern/src/LoginPage.js +++ b/modern/src/LoginPage.js @@ -1,3 +1,4 @@ +import t from './common/localization' import React, { Component } from 'react'; import Button from '@material-ui/core/Button'; import FormHelperText from '@material-ui/core/FormHelperText'; @@ -95,7 +96,7 @@ class LoginPage extends Component { <form onSubmit={this.handleLogin}> <FormControl margin="normal" required fullWidth error={failed}> - <InputLabel htmlFor="email">Email</InputLabel> + <InputLabel htmlFor="email">{t('userEmail')}</InputLabel> <Input id="email" value={email} @@ -106,7 +107,7 @@ class LoginPage extends Component { </FormControl> <FormControl margin="normal" required fullWidth> - <InputLabel htmlFor="password">Password</InputLabel> + <InputLabel htmlFor="password">{t('userPassword')}</InputLabel> <Input id="password" type="password" @@ -123,7 +124,7 @@ class LoginPage extends Component { disabled className={classes.button} onClick={this.handleRegister}> - Register + {t('loginRegister')} </Button> <Button @@ -132,7 +133,7 @@ class LoginPage extends Component { color="primary" disabled={!email || !password} className={classes.button}> - Login + {t('loginLogin')} </Button> </div> |