fix: date picker lang

This commit is contained in:
puriphatt 2024-06-14 11:04:31 +00:00
parent c4c7fd0b16
commit 513d90a34c

View file

@ -126,13 +126,16 @@ defineProps<{
autoApply
:teleport="true"
v-model="birthDate"
:locale="'th'"
:locale="$i18n.locale === 'th-th' ? 'th' : 'en'"
:enableTimePicker="false"
:disabled="readonly"
class="col-3"
>
<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