elreco/vue-tailwind-datepicker

i18n german does not work

Closed this issue · 5 comments

I use Laravel 10 with vue3 script setup and inertia.

In my example i use the tailwind datepicker and everythings works fine except i18n.

import "dayjs/locale/de";

vue-tailwind-datepicker
i18n="de"
v-model="form.collection_date"
:formatter="formatter"
as-single
input-classes="py-3 px-4 border-gray-200 rounded-lg cursor-pointer text-base focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-slate-900 dark:border-gray-700 dark:text-gray-400 dark:focus:ring-gray-600"
weekdays-size="min"
week-number
:disable-date="dDate"
/>

The calendar is still in english language.

The example here: https://vue-tailwind-datepicker.com/advanced-features.html should be in french, i think.
But it is english too.

Does anyone has a solution?

Same issue here.

Same.

I now use version 1.7.2.
I have copied your example https://vue-tailwind-datepicker.com/advanced-features.html but the datepicker is still in english language - not french or any other langauge i have tried.

Do you have any solution?

I reverted this PR #148

I don't know why it doesn't work like it says in the official documentation: https://day.js.org/docs/en/i18n/loading-into-nodejs

Please use version 1.7.3