fix AM/PM text in datetime picker is not translated

This commit is contained in:
MaysWind
2023-08-19 22:37:26 +08:00
parent 3095613a76
commit 7257abefb4
6 changed files with 15 additions and 6 deletions
@@ -37,6 +37,9 @@
<template #month-overlay-value="{ text }">
{{ getMonthShortName(text) }}
</template>
<template #am-pm-button="{ toggle, value }">
<button class="dp__pm_am_button" tabindex="0" @click="toggle">{{ $t(`datetime.${value}.content`) }}</button>
</template>
</vue-date-picker>
</v-card-text>
<v-card-text class="overflow-y-visible">
@@ -34,6 +34,9 @@
<template #month-overlay-value="{ text }">
{{ getMonthShortName(text) }}
</template>
<template #am-pm-button="{ toggle, value }">
<button class="dp__pm_am_button" tabindex="0" @click="toggle">{{ $t(`datetime.${value}.content`) }}</button>
</template>
</vue-date-picker>
<f7-button large fill
:class="{ 'disabled': !dateRange[0] || !dateRange[1] }"
@@ -29,6 +29,9 @@
<template #month-overlay-value="{ text }">
{{ getMonthShortName(text) }}
</template>
<template #am-pm-button="{ toggle, value }">
<button class="dp__pm_am_button" tabindex="0" @click="toggle">{{ $t(`datetime.${value}.content`) }}</button>
</template>
</vue-date-picker>
</f7-page-content>
</f7-sheet>