diff options
-rw-r--r-- | src/components/_sila/Global/Chart.vue | 10 | ||||
-rw-r--r-- | src/locales/en-US.json | 3 | ||||
-rw-r--r-- | src/locales/ru-RU.json | 3 |
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": "Заголовок веб-приложения", |