How do I transalte the time picker? #1832
-
I'm using laravel with vite. I go to But the clear, cancel and ok buttons won't translate. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi! When importing the You can change the default options via data attributes or with JS if you are initializing via JS, for example:
Checkout the API section of the Timepicker documentation: https://tailwind-elements.com/docs/standard/forms/timepicker/#docsTabsAPI |
Beta Was this translation helpful? Give feedback.
Hi! When importing the
tw-elements
to your js, your app is using the built ES or UMD file, not the files fromsrc
folder. Thats why it won't change anything if you try to edit theDefault
variable.You can change the default options via data attributes or with JS if you are initializing via JS, for example: