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 autoApply
:teleport="true" :teleport="true"
v-model="birthDate" v-model="birthDate"
:locale="'th'" :locale="$i18n.locale === 'th-th' ? 'th' : 'en'"
:enableTimePicker="false" :enableTimePicker="false"
:disabled="readonly" :disabled="readonly"
class="col-3" class="col-3"
> >
<template #year="{ value }"> <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>
<template #trigger> <template #trigger>
<q-input <q-input