diff options
author | Anton Tananaev <anton@traccar.org> | 2022-04-17 19:25:46 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-04-17 19:25:46 -0700 |
commit | fa3ecdcd8f181c01279a0712dc795f7f2cf909ee (patch) | |
tree | c1f7b4aabd1591499b69a3ba31a463218f6b3e3a /modern/src/map/StatusView.js | |
parent | 7d3e4252fb09da9b1d466ac704ba4aa301317ef9 (diff) | |
download | trackermap-web-fa3ecdcd8f181c01279a0712dc795f7f2cf909ee.tar.gz trackermap-web-fa3ecdcd8f181c01279a0712dc795f7f2cf909ee.tar.bz2 trackermap-web-fa3ecdcd8f181c01279a0712dc795f7f2cf909ee.zip |
Fix localization issues
Diffstat (limited to 'modern/src/map/StatusView.js')
-rw-r--r-- | modern/src/map/StatusView.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modern/src/map/StatusView.js b/modern/src/map/StatusView.js index cdd6ecaf..2c3a7568 100644 --- a/modern/src/map/StatusView.js +++ b/modern/src/map/StatusView.js @@ -14,7 +14,7 @@ import EditIcon from '@material-ui/icons/Edit'; import DeleteIcon from '@material-ui/icons/Delete'; import { - formatPosition, getStatusColor, getBatteryStatus, formatDistance, formatSpeed, + formatPosition, getStatusColor, getBatteryStatus, formatDistance, formatSpeed, formatStatus, } from '../common/formatter'; import { useAttributePreference } from '../common/preferences'; import RemoveDialog from '../RemoveDialog'; @@ -72,7 +72,7 @@ const StatusView = ({ <ListItem classes={{ container: classes.listItemContainer }}> <ListItemText primary={t('deviceStatus')} /> <ListItemSecondaryAction> - <span className={classes[getStatusColor(device.status)]}>{device.status}</span> + <span className={classes[getStatusColor(device.status)]}>{formatStatus(device.status, t)}</span> </ListItemSecondaryAction> </ListItem> <ListItem classes={{ container: classes.listItemContainer }}> @@ -107,7 +107,7 @@ const StatusView = ({ </Grid> <Grid item container> <Grid item> - <Button color="secondary" onClick={handleClick}>More Info</Button> + <Button color="secondary" onClick={handleClick}>{t('sharedInfoTitle')}</Button> </Grid> <Grid item> <IconButton onClick={onShowHistory}> |