litepie-datepicker icon indicating copy to clipboard operation
litepie-datepicker copied to clipboard

RTL Support Issue

Open nezamy-wow-ws opened this issue 3 years ago • 6 comments

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

nezamy-wow-ws avatar Mar 25 '21 09:03 nezamy-wow-ws

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.

tbordinat avatar Mar 25 '21 09:03 tbordinat

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

nezamy-wow-ws avatar Mar 25 '21 10:03 nezamy-wow-ws

thank for suggestion,

kenhyuwa avatar Mar 25 '21 10:03 kenhyuwa

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

tbordinat avatar Mar 25 '21 10:03 tbordinat

is there any update for this issue?

ahmedshaheen201400721 avatar Oct 24 '22 22:10 ahmedshaheen201400721

This issues can be fixed on version 2.0.0 I have working on [email protected]

kenhyuwa avatar Oct 25 '22 12:10 kenhyuwa