summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaksim Zakharov <m.zakharov@IBS.RU>2022-10-21 16:58:11 +0300
committerMaksim Zakharov <m.zakharov@IBS.RU>2022-10-21 16:58:11 +0300
commit17d2e05c2f017e5a9335287dd6f8531ec6f4df0e (patch)
tree5e22bd7aa34c54d5758405981f173011f1d72b64
parent1c4fe3683f8103f989265d424034ff0362a9b17c (diff)
downloadwebui-vue-sila.tar.xz
chart localesila
-rw-r--r--src/components/_sila/Global/Chart.vue9
-rw-r--r--src/locales/en-US.json4
-rw-r--r--src/locales/ru-RU.json4
3 files changed, 12 insertions, 5 deletions
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": "Заголовок веб-приложения",