From ffcacb3d48c0820cad873e23eb99ef4c10a8d28c Mon Sep 17 00:00:00 2001 From: Yurii Date: Tue, 19 May 2026 19:42:29 +0300 Subject: [PATCH] fix: translation for volume unit --- src_data/locales/en.json | 4 +++- src_data/scripts/utils.js | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src_data/locales/en.json b/src_data/locales/en.json index a093f6c..c668f33 100644 --- a/src_data/locales/en.json +++ b/src_data/locales/en.json @@ -19,7 +19,9 @@ "rpm": "RPM", "ppm": "ppm", "byte": "byte", - "mbyte": "MB" + "mbyte": "MB", + "liter": "L", + "gallon": "gal" }, "button": { "upgrade": "Upgrade", diff --git a/src_data/scripts/utils.js b/src_data/scripts/utils.js index 689ffb9..ab318ef 100644 --- a/src_data/scripts/utils.js +++ b/src_data/scripts/utils.js @@ -765,8 +765,8 @@ const pressureUnit = (unitSystem) => { const volumeUnit = (unitSystem) => { return unit2str(unitSystem, { - 0: "L", - 1: "gal" + 0: i18n('units.liter'), + 1: i18n('units.gallon') }); } @@ -780,7 +780,7 @@ const purposeUnit = (purpose, unitSystem) => { 3: tUnit, 4: tUnit, 5: tUnit, - 6: `${volumeUnit(unitSystem)}/${i18n('time.min')}`, + 6: `${volumeUnit(unitSystem)}/${i18n('units.min')}`, 7: tUnit, 8: "%", 248: "%",