From 62e7590b86076aae0202610cc8672e05d31b84b7 Mon Sep 17 00:00:00 2001 From: Alexandre LE CORRE Date: Mon, 4 Dec 2023 13:18:52 +0100 Subject: [PATCH] feat(i18n): import locales outside the component --- docs/advanced-features.md | 11 ++++++++--- src/App.vue | 5 ++++- src/VueTailwindDatePicker.vue | 8 ++------ src/utils.ts | 7 ------- 4 files changed, 14 insertions(+), 17 deletions(-) diff --git a/docs/advanced-features.md b/docs/advanced-features.md index 00041ae..dfdb514 100644 --- a/docs/advanced-features.md +++ b/docs/advanced-features.md @@ -18,7 +18,7 @@ atClick: () => { const date = new Date(); return [ - new Date(date.setDate(date.getDate() - 14)), + new Date(date.setDate(date.getDate() - 14)), new Date() ]; } @@ -159,7 +159,10 @@ const customShortcuts = () => { ## Localization (i18n) -Vue Tailwind Datepicker extend to day.js
+Vue Tailwind Datepicker now supports on-the-fly locale importing, extending to day.js.
+This means you only import the specific locale you need directly into your project, reducing unnecessary load of unused locales. +
+
[List of supported locales](https://github.com/iamkun/dayjs/tree/dev/src/locale) @@ -174,6 +177,8 @@ Vue Tailwind Datepicker extend to day.js
```vue