From 8ca817d9c3529b3a30934449b6a0032c4a57e6f6 Mon Sep 17 00:00:00 2001 From: Mikhail Volkov <47795110+mikhail-vl@users.noreply.github.com> Date: Tue, 11 Jun 2024 21:59:48 -0400 Subject: [PATCH] Update panel options (#204) * Update panel options * Update options.ts --- CHANGELOG.md | 1 + src/constants/options.ts | 10 +++++----- src/i18n/translations/en.json | 16 ++++++++-------- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eddcb03..b1ae919 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ - Updated dependencies (#200) - Added display dashboard annotations (#194) - Added Portuguese language (#201) +- Updated toolbar and messages to the selected language (#203) ## 3.1.0 (2024-05-19) diff --git a/src/constants/options.ts b/src/constants/options.ts index b85289d..e4f9f29 100644 --- a/src/constants/options.ts +++ b/src/constants/options.ts @@ -22,8 +22,8 @@ export const COLOR_OPTIONS = (t: TFunction) => [ * Annotations Options */ export const ANNOTATIONS_OPTIONS = (t: TFunction) => [ - { value: true, label: t('panelOptions.annotations.annotations.options.enabled'), icon: 'toggle-on' }, - { value: false, label: t('panelOptions.annotations.annotations.options.disabled'), icon: 'toggle-off' }, + { value: true, label: t('panelOptions.annotations.annotations.options.enabled'), icon: 'comments-alt' }, + { value: false, label: t('panelOptions.annotations.annotations.options.disabled') }, ]; /** @@ -60,9 +60,9 @@ export const DATE_FORMAT_OPTIONS = (t: TFunction) => * TIME RANGE OPTIONS */ export const TIME_RANGE_TYPE_OPTIONS = (t: TFunction) => [ - { value: TimeRangeType.DEFAULT, label: t('panelOptions.timeRangeType.options.default') }, - { value: TimeRangeType.MANUAL, label: t('panelOptions.timeRangeType.options.manual') }, - { value: TimeRangeType.VARIABLE, label: t('panelOptions.timeRangeType.options.variable') }, + { value: TimeRangeType.DEFAULT, label: t('panelOptions.timeRangeType.options.default'), icon: 'dashboard' }, + { value: TimeRangeType.MANUAL, label: t('panelOptions.timeRangeType.options.manual'), icon: 'pen' }, + { value: TimeRangeType.VARIABLE, label: t('panelOptions.timeRangeType.options.variable'), icon: 'sliders-v-alt' }, ]; /** diff --git a/src/i18n/translations/en.json b/src/i18n/translations/en.json index 0cee062..43098d9 100644 --- a/src/i18n/translations/en.json +++ b/src/i18n/translations/en.json @@ -84,12 +84,12 @@ } }, "endTimeRange": { - "description": "Set end time", - "label": "End time range (to)" + "description": "Set 'to' time", + "label": "End time range" }, "endTimeVariable": { - "description": "Select variable", - "label": "End time range (to)" + "description": "Select 'to' variable", + "label": "End time range" }, "eventField": { "options": { @@ -175,12 +175,12 @@ "label": "Scroll To Time" }, "startTimeRange": { - "description": "Set Start time", - "label": "Start time range (from)" + "description": "Set 'from' time", + "label": "Start time range" }, "startTimeVariable": { - "description": "Select variable", - "label": "Start time range (from)" + "description": "Select 'from' variable", + "label": "Start time range" }, "timeRangeType": { "description": "Time Range source used for Calendar",