litepie-datepicker
litepie-datepicker copied to clipboard
RTL Support Issue
Hello, @kenhyuwa Thanks for this awesome component
I have an issue with RTL direction
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
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 yes I'm using vite and I see the warning too
thank for suggestion,
I created another issue for the Vite / i18n problem : https://github.com/kenhyuwa/litepie-datepicker/issues/12
is there any update for this issue?
This issues can be fixed on version 2.0.0
I have working on [email protected]