Fix date picker translation (#2883)

Signed-off-by: muhtimur <timur.mukhamedishin@xored.com>
This commit is contained in:
Timur Mukhamedishin 2023-04-04 15:16:39 +07:00 committed by GitHub
parent 585d82320e
commit a49792b731
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 9 deletions

View File

@ -41,6 +41,10 @@
"HoursLabel": "Hours",
"Back": "Back",
"Next": "Next",
"DropdownDefaultLabel": "Select Item"
"DropdownDefaultLabel": "Select Item",
"DD": "DD",
"MM": "MM",
"YYYY": "YYYY",
"HH": "HH"
}
}

View File

@ -41,6 +41,10 @@
"HoursLabel": "Часы",
"Back": "Назад",
"Next": "Вперед",
"DropdownDefaultLabel": "Выберите Элемент"
"DropdownDefaultLabel": "Выберите Элемент",
"DD": "ДД",
"MM": "ММ",
"YYYY": "ГГГГ",
"HH": "ЧЧ"
}
}

View File

@ -258,7 +258,7 @@
>
{#if edits[0].value > -1}
{edits[0].value.toString().padStart(2, '0')}
{:else}ДД{/if}
{:else}<Label label={ui.string.DD} />{/if}
</span>
<span class="separator">.</span>
<span
@ -271,7 +271,7 @@
>
{#if edits[1].value > -1}
{edits[1].value.toString().padStart(2, '0')}
{:else}ММ{/if}
{:else}<Label label={ui.string.MM} />{/if}
</span>
<span class="separator">.</span>
<span
@ -284,7 +284,7 @@
>
{#if edits[2].value > -1}
{edits[2].value.toString().padStart(4, '0')}
{:else}ГГГГ{/if}
{:else}<Label label={ui.string.YYYY} />{/if}
</span>
{#if withTime}
<div class="time-divider" />
@ -298,7 +298,7 @@
>
{#if edits[3].value > -1}
{edits[3].value.toString().padStart(2, '0')}
{:else}ЧЧ{/if}
{:else}<Label label={ui.string.HH} />{/if}
</span>
<span class="separator">:</span>
<span
@ -311,7 +311,7 @@
>
{#if edits[4].value > -1}
{edits[4].value.toString().padStart(2, '0')}
{:else}ММ{/if}
{:else}<Label label={ui.string.MM} />{/if}
</span>
{/if}
</div>
@ -352,7 +352,7 @@
</div>
</div>
<div class="footer">
<Button kind={'primary'} label={ui.string.SaveDueDate} size={'x-large'} width={'100%'} on:click={closeDP} />
<Button kind={'primary'} label={ui.string.Save} size={'x-large'} width={'100%'} on:click={closeDP} />
</div>
</div>

View File

@ -66,7 +66,11 @@ export const uis = plugin(uiId, {
HoursLabel: '' as IntlString,
Back: '' as IntlString,
Next: '' as IntlString,
DropdownDefaultLabel: '' as IntlString
DropdownDefaultLabel: '' as IntlString,
DD: '' as IntlString,
MM: '' as IntlString,
YYYY: '' as IntlString,
HH: '' as IntlString
},
metadata: {
DefaultApplication: '' as Metadata<AnyComponent>,