fix: date picker locale

This commit is contained in:
puriphatt 2024-06-14 11:01:06 +00:00
parent 5bc28bf893
commit c8b1a7551a
6 changed files with 70 additions and 28 deletions

View file

@ -87,13 +87,16 @@ function deleteFile(name: string) {
autoApply
v-model="startDate"
:teleport="true"
:locale="'th'"
:locale="$i18n.locale === 'th-th' ? 'th' : 'en'"
:enableTimePicker="false"
:disabled="readonly"
class="col-6"
>
<template #year="{ value }">
{{ value + 543 }}
{{ $i18n.locale === 'th-th' ? value + 543 : value }}
</template>
<template #year-overlay-value="{ value }">
{{ $i18n.locale === 'th-th' ? value + 543 : value }}
</template>
<template #trigger>
<q-input
@ -131,13 +134,16 @@ function deleteFile(name: string) {
autoApply
v-model="retireDate"
:teleport="true"
:locale="'th'"
:locale="$i18n.locale === 'th-th' ? 'th' : 'en'"
:enableTimePicker="false"
:disabled="readonly"
class="col-6"
>
<template #year="{ value }">
{{ value + 543 }}
{{ $i18n.locale === 'th-th' ? value + 543 : value }}
</template>
<template #year-overlay-value="{ value }">
{{ $i18n.locale === 'th-th' ? value + 543 : value }}
</template>
<template #trigger>
<q-input