diff options
Diffstat (limited to 'modern/src/map')
-rw-r--r-- | modern/src/map/StatusView.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modern/src/map/StatusView.js b/modern/src/map/StatusView.js index 85009db7..5526e148 100644 --- a/modern/src/map/StatusView.js +++ b/modern/src/map/StatusView.js @@ -77,27 +77,29 @@ const StatusView = ({ <ListItem classes={{ container: classes.listItemContainer }}> <ListItemText primary={t('positionSpeed')} /> <ListItemSecondaryAction> - <span>{formatSpeed(position.speed, speedUnit)}</span> + {formatSpeed(position.speed, speedUnit, t)} </ListItemSecondaryAction> </ListItem> {position.attributes.batteryLevel && ( <ListItem classes={{ container: classes.listItemContainer }}> <ListItemText primary={t('positionBattery')} /> <ListItemSecondaryAction> - <span className={classes[getBatteryStatus(position.attributes.batteryLevel)]}>{formatPosition(position.attributes.batteryLevel, 'batteryLevel')}</span> + <span className={classes[getBatteryStatus(position.attributes.batteryLevel)]}> + {formatPosition(position.attributes.batteryLevel, 'batteryLevel', t)} + </span> </ListItemSecondaryAction> </ListItem> )} <ListItem classes={{ container: classes.listItemContainer }}> <ListItemText primary={t('positionDistance')} /> <ListItemSecondaryAction> - <span>{formatDistance(position.attributes.totalDistance, distanceUnit)}</span> + {formatDistance(position.attributes.totalDistance, distanceUnit, t)} </ListItemSecondaryAction> </ListItem> <ListItem classes={{ container: classes.listItemContainer }}> <ListItemText primary={t('positionCourse')} /> <ListItemSecondaryAction> - <span>{formatPosition(position.course, 'course')}</span> + {formatPosition(position.course, 'course', t)} </ListItemSecondaryAction> </ListItem> </List> |