From 17d2e05c2f017e5a9335287dd6f8531ec6f4df0e Mon Sep 17 00:00:00 2001 From: Maksim Zakharov Date: Fri, 21 Oct 2022 16:58:11 +0300 Subject: chart locale --- src/components/_sila/Global/Chart.vue | 9 ++++++--- src/locales/en-US.json | 4 +++- src/locales/ru-RU.json | 4 +++- 3 files changed, 12 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/components/_sila/Global/Chart.vue b/src/components/_sila/Global/Chart.vue index a6ebd9fc..4a5541d2 100644 --- a/src/components/_sila/Global/Chart.vue +++ b/src/components/_sila/Global/Chart.vue @@ -319,17 +319,20 @@ export default { categories = this.setSpeed(this.setMaxWithInterval()); break; case 'power': - categories = this.setCategories(201, 'Вт'); + categories = this.setCategories(201, this.$t('chart.wats')); break; case 'voltage-input': case 'voltage-output': - categories = this.setCategories(this.setMaxWithInterval(), 'В'); + categories = this.setCategories( + this.setMaxWithInterval(), + this.$t('chart.volts') + ); break; case 'current': categories = this.setCategories(11, 'A'); break; case 'psu-power': - categories = this.setCategories(126, 'Вт'); + categories = this.setCategories(126, this.$t('chart.wats')); break; } return categories; diff --git a/src/locales/en-US.json b/src/locales/en-US.json index 2edff302..0c66ba18 100644 --- a/src/locales/en-US.json +++ b/src/locales/en-US.json @@ -113,7 +113,9 @@ "chart": { "thresholdFailure": "Threshold failure", "thresholdWarning": "Threshold warning", - "resetZoom": "Reset zoom" + "resetZoom": "Reset zoom", + "wats": "W", + "volts": "V" }, "appHeader": { "applicationHeader": "Application header", diff --git a/src/locales/ru-RU.json b/src/locales/ru-RU.json index b5272cc4..9498b0aa 100644 --- a/src/locales/ru-RU.json +++ b/src/locales/ru-RU.json @@ -113,7 +113,9 @@ "chart": { "thresholdFailure": "Пороговое значение отказ", "thresholdWarning": "Пороговое значение предупреждения", - "resetZoom": "Сбросить масштаб" + "resetZoom": "Сбросить масштаб", + "wats": "Вт", + "volts": "В" }, "appHeader": { "applicationHeader": "Заголовок веб-приложения", -- cgit v1.2.3