kenhyuwa / litepie-datepicker

Litepie Datepicker is a date range picker component for Vue.js and Tailwind CSS, dependent to day.js.
https://litepie.com
MIT License
373 stars 75 forks source link

RTL Support Issue #9

Open nezamy-wow-ws opened 3 years ago

nezamy-wow-ws commented 3 years ago

Hello, @kenhyuwa Thanks for this awesome component

I have an issue with RTL direction date

I suggest using tailwindcss-rtl pluging to fix the direction by replacing classes like pl-3 pr-12 left-3 right-3 text-left to ps-3 pe-12 start-3 end-3 text-start

I'm using version 1.0.12 and still i18n="ar" not work with the Arabic language and it's listed here

tbordinat commented 3 years ago

For i18n, I noticed the same problem. Are you using Vite ?

Here is the error I got :

dashboard_1  | 7:31:52 AM [vite] warning: 
dashboard_1  | /app/node_modules/.vite/litepie-datepicker.js
dashboard_1  | 1997|        const locale = props.i18n;
dashboard_1  | 1998|        nextTick(() => {
dashboard_1  | 1999|          import(`dayjs/locale/${locale}.js`).then(() => {
dashboard_1  |    |                 ^
dashboard_1  | 2000|            import_dayjs.default.locale(locale);
dashboard_1  | 2001|            let s, e;
dashboard_1  | The above dynamic import cannot be analyzed by vite.
dashboard_1  | See https://github.com/rollup/plugins/tree/master/packages/dynamic-import-vars#limitations for supported dynamic import formats. If this is intended to be left as-is, you can use the /* @vite-ignore */ comment inside the import() call to suppress this warning.
nezamy-wow-ws commented 3 years ago

@tbordinat yes I'm using vite and I see the warning too

kenhyuwa commented 3 years ago

thank for suggestion,

tbordinat commented 3 years ago

I created another issue for the Vite / i18n problem : https://github.com/kenhyuwa/litepie-datepicker/issues/12

ahmedshaheen201400721 commented 1 year ago

is there any update for this issue?

kenhyuwa commented 1 year ago

This issues can be fixed on version 2.0.0 I have working on litepie-datepicker@2.0.0