summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitalii Lysak <v.lysak@dunice.net>2022-08-19 15:54:53 +0300
committerVitalii Lysak <v.lysak@dunice.net>2022-08-19 15:54:53 +0300
commit24794f83ae125ecf6f4f51c434140f51bd3fe452 (patch)
treee37c9c6799b9c931643d09197fb1f31587e14f12
parent014378279f8d2dcaf66515ee1fb900abc9332777 (diff)
downloadwebui-vue-24794f83ae125ecf6f4f51c434140f51bd3fe452.tar.xz
SILABMC-270: resetZoom name from locale
-rw-r--r--src/components/_sila/Global/Chart.vue10
-rw-r--r--src/locales/en-US.json3
-rw-r--r--src/locales/ru-RU.json3
3 files changed, 14 insertions, 2 deletions
diff --git a/src/components/_sila/Global/Chart.vue b/src/components/_sila/Global/Chart.vue
index 19491f68..5c32b031 100644
--- a/src/components/_sila/Global/Chart.vue
+++ b/src/components/_sila/Global/Chart.vue
@@ -3,6 +3,7 @@
</template>
<script>
+import Highcharts from 'highcharts';
import { Chart } from 'highcharts-vue';
export default {
@@ -335,10 +336,19 @@ export default {
},
async created() {
+ this.setChart();
this.setOptions();
},
methods: {
+ setChart() {
+ Highcharts.setOptions({
+ lang: {
+ resetZoom: this.$t('chart.resetZoom'),
+ },
+ });
+ },
+
setOptions() {
switch (this.type) {
case 'fans':
diff --git a/src/locales/en-US.json b/src/locales/en-US.json
index cd119b46..93dd2188 100644
--- a/src/locales/en-US.json
+++ b/src/locales/en-US.json
@@ -93,7 +93,8 @@
},
"chart": {
"thresholdFailure": "Threshold failure",
- "thresholdWarning": "Threshold warning"
+ "thresholdWarning": "Threshold warning",
+ "resetZoom": "Reset zoom"
},
"appHeader": {
"applicationHeader": "Application header",
diff --git a/src/locales/ru-RU.json b/src/locales/ru-RU.json
index a2d6f481..98c6d6c3 100644
--- a/src/locales/ru-RU.json
+++ b/src/locales/ru-RU.json
@@ -93,7 +93,8 @@
},
"chart": {
"thresholdFailure": "Пороговое значение отказ",
- "thresholdWarning": "Пороговое значение предупреждения"
+ "thresholdWarning": "Пороговое значение предупреждения",
+ "resetZoom": "Сбросить масштаб"
},
"appHeader": {
"applicationHeader": "Заголовок веб-приложения",