aboutsummaryrefslogtreecommitdiff
path: root/modern/src/LoginPage.js
diff options
context:
space:
mode:
authorditoaugusta <dt_ap@ymail.com>2020-03-27 18:30:47 +0700
committerditoaugusta <dt_ap@ymail.com>2020-03-27 18:30:47 +0700
commit114604e02eea84d3de78fb340f1c91c72b46e904 (patch)
tree8ef061009cd1823ccadd06d28113c254dde0ec5a /modern/src/LoginPage.js
parent8bef4f04c2b0b203450fe5753b6109a0b0d04e82 (diff)
parent79c36b9a84623fb99db0ab71cc9a31391f06489e (diff)
downloadtrackermap-web-114604e02eea84d3de78fb340f1c91c72b46e904.tar.gz
trackermap-web-114604e02eea84d3de78fb340f1c91c72b46e904.tar.bz2
trackermap-web-114604e02eea84d3de78fb340f1c91c72b46e904.zip
Merge branch 'master' of https://github.com/traccar/traccar-web into experimental/hooks
Diffstat (limited to 'modern/src/LoginPage.js')
-rw-r--r--modern/src/LoginPage.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/modern/src/LoginPage.js b/modern/src/LoginPage.js
index 1f0b950b..1da33663 100644
--- a/modern/src/LoginPage.js
+++ b/modern/src/LoginPage.js
@@ -8,6 +8,8 @@ import InputLabel from '@material-ui/core/InputLabel';
import Paper from '@material-ui/core/Paper';
import { makeStyles } from '@material-ui/core';
+import t from './common/localization';
+
const useStyles = makeStyles(theme => ({
root: {
width: 'auto',
@@ -81,7 +83,7 @@ const LoginPage = () => {
<img className={classes.logo} src="/logo.svg" alt="Traccar" />
<form onSubmit={handleLogin}>
<FormControl margin="normal" required fullWidth error={failed}>
- <InputLabel htmlFor="email">Email</InputLabel>
+ <InputLabel htmlFor="email">{t('userEmail')}</InputLabel>
<Input
id="email"
name="email"
@@ -93,7 +95,7 @@ const LoginPage = () => {
</FormControl>
<FormControl margin="normal" required fullWidth>
- <InputLabel htmlFor="password">Password</InputLabel>
+ <InputLabel htmlFor="password">{t('userPassword')}</InputLabel>
<Input
id="password"
name="password"
@@ -110,8 +112,8 @@ const LoginPage = () => {
disabled
className={classes.button}
onClick={handleRegister}>
- Register
- </Button>
+ {t('loginRegister')}
+ </Button>
<Button
type="submit"
@@ -119,8 +121,8 @@ const LoginPage = () => {
color="primary"
disabled={!email || !password}
className={classes.button}>
- Login
- </Button>
+ {t('loginLogin')}
+ </Button>
</div>
</form>