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/MainToolbar.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/MainToolbar.js')
-rw-r--r-- | modern/src/MainToolbar.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modern/src/MainToolbar.js b/modern/src/MainToolbar.js index 6e2e4d6d..41382b0b 100644 --- a/modern/src/MainToolbar.js +++ b/modern/src/MainToolbar.js @@ -1,3 +1,4 @@ +import t from './common/localization' import React, { Component, Fragment } from 'react'; import { withStyles } from '@material-ui/core/styles'; import AppBar from '@material-ui/core/AppBar'; @@ -80,7 +81,7 @@ class MainToobar extends Component { <Typography variant="h6" color="inherit" className={classes.flex}> Traccar </Typography> - <Button color="inherit" onClick={this.handleLogout}>Logout</Button> + <Button color="inherit" onClick={this.handleLogout}>{t('loginLogout')}</Button> </Toolbar> </AppBar> <Drawer open={this.state.drawer} onClose={this.closeDrawer}> @@ -95,13 +96,13 @@ class MainToobar extends Component { <ListItemIcon> <DashboardIcon /> </ListItemIcon> - <ListItemText primary="Dashboard" /> + <ListItemText primary={t('mapTitle')} /> </ListItem> <ListItem button disabled> <ListItemIcon> <BarChartIcon /> </ListItemIcon> - <ListItemText primary="Reports" /> + <ListItemText primary={t('reportTitle')} /> </ListItem> </List> <Divider /> @@ -110,7 +111,7 @@ class MainToobar extends Component { <ListItemIcon> <SettingsIcon /> </ListItemIcon> - <ListItemText primary="Settings" /> + <ListItemText primary={t('settingsTitle')} /> </ListItem> </List> </div> |