From 797f62c1b71d1bb5190b940c3957b4fe3aeed92f Mon Sep 17 00:00:00 2001 From: K-J-Dod24 Date: Tue, 16 May 2023 15:03:57 +0100 Subject: Chamge languages + formatCelsius to temperature --- modern/src/common/components/PositionValue.js | 2 +- modern/src/common/util/formatter.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modern/src/common') 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) { -- cgit v1.2.3