From a49792b731f4d3a802421e5c582466ef9df12561 Mon Sep 17 00:00:00 2001 From: Timur Mukhamedishin <84380737+muhtimur@users.noreply.github.com> Date: Tue, 4 Apr 2023 15:16:39 +0700 Subject: [PATCH] Fix date picker translation (#2883) Signed-off-by: muhtimur --- packages/ui/lang/en.json | 6 +++++- packages/ui/lang/ru.json | 6 +++++- packages/ui/src/components/calendar/DatePopup.svelte | 12 ++++++------ packages/ui/src/plugin.ts | 6 +++++- 4 files changed, 21 insertions(+), 9 deletions(-) diff --git a/packages/ui/lang/en.json b/packages/ui/lang/en.json index 37ad473eeb..b682e07d67 100644 --- a/packages/ui/lang/en.json +++ b/packages/ui/lang/en.json @@ -41,6 +41,10 @@ "HoursLabel": "Hours", "Back": "Back", "Next": "Next", - "DropdownDefaultLabel": "Select Item" + "DropdownDefaultLabel": "Select Item", + "DD": "DD", + "MM": "MM", + "YYYY": "YYYY", + "HH": "HH" } } diff --git a/packages/ui/lang/ru.json b/packages/ui/lang/ru.json index d395de2ec8..37abe32359 100644 --- a/packages/ui/lang/ru.json +++ b/packages/ui/lang/ru.json @@ -41,6 +41,10 @@ "HoursLabel": "Часы", "Back": "Назад", "Next": "Вперед", - "DropdownDefaultLabel": "Выберите Элемент" + "DropdownDefaultLabel": "Выберите Элемент", + "DD": "ДД", + "MM": "ММ", + "YYYY": "ГГГГ", + "HH": "ЧЧ" } } diff --git a/packages/ui/src/components/calendar/DatePopup.svelte b/packages/ui/src/components/calendar/DatePopup.svelte index 67944a9ecc..34b65e1bf9 100644 --- a/packages/ui/src/components/calendar/DatePopup.svelte +++ b/packages/ui/src/components/calendar/DatePopup.svelte @@ -258,7 +258,7 @@ > {#if edits[0].value > -1} {edits[0].value.toString().padStart(2, '0')} - {:else}ДД{/if} + {:else}