aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common
diff options
context:
space:
mode:
authorK-J-Dod24 <kieran.dodson@complexus.uk>2023-05-16 15:03:57 +0100
committerK-J-Dod24 <kieran.dodson@complexus.uk>2023-05-16 15:03:57 +0100
commit797f62c1b71d1bb5190b940c3957b4fe3aeed92f (patch)
tree7d3e5fe6754f8b40bbf93c88918b1d056d1a92ff /modern/src/common
parent8c93f087e15d7f4452169ef80f9f5ff22a9096e1 (diff)
downloadtrackermap-web-797f62c1b71d1bb5190b940c3957b4fe3aeed92f.tar.gz
trackermap-web-797f62c1b71d1bb5190b940c3957b4fe3aeed92f.tar.bz2
trackermap-web-797f62c1b71d1bb5190b940c3957b4fe3aeed92f.zip
Chamge languages + formatCelsius to temperature
Diffstat (limited to 'modern/src/common')
-rw-r--r--modern/src/common/components/PositionValue.js2
-rw-r--r--modern/src/common/util/formatter.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/common/components/PositionValue.js b/modern/src/common/components/PositionValue.js
index 6ff7c7ad..3d9af9b6 100644
--- a/modern/src/common/components/PositionValue.js
+++ b/modern/src/common/components/PositionValue.js
@@ -46,7 +46,7 @@ const PositionValue = ({ position, property, attribute }) => {
case 'batteryLevel':
return value != null ? formatPercentage(value, t) : '';
case 'coolantTemp':
- return formatCelsius(value);
+ return formatTemperature(value);
case 'alarm':
return formatAlarm(value, t);
case 'odometer':
diff --git a/modern/src/common/util/formatter.js b/modern/src/common/util/formatter.js
index 7f08ddcb..610b8dd0 100644
--- a/modern/src/common/util/formatter.js
+++ b/modern/src/common/util/formatter.js
@@ -17,7 +17,7 @@ export const formatNumber = (value, precision = 1) => Number(value.toFixed(preci
export const formatPercentage = (value) => `${value}%`;
-export const formatCelsius = (value) => `${value}°C`;
+export const formatTemperature = (value) => `${value}°C`;
export const formatTime = (value, format, hours12) => {
if (value) {