How to localize q-datetime
-
What do I need to do to localize q-datetime? I need the buttons “Clear”, “Cancel”, “Set” translated and I need to be able to enter the time in the 24 hours format not by “am/pm”. Also the Label is overlapping with the date and time and the date and time is backwards yyyy-mm-dd and I would like to have it dd.mm.yyyy. Any suggestions?
-
Have you read the docs?
http://beta.quasar-framework.org/components/datetime.html
Important things to look for to answer your questions are the props
ok-label
,cancel-label
,clear-label
(which can be used to rename the control buttons),day-names
,month-names
(for internalization of the days and months),format-24h
andformat
(for the date formatting).Why the label is overlapping is strange. What browser and OS are you using?
Scott
-
Thank you very much. Did read the docs only half-way through, sorry. But format-24h is a 0.14 feature. I have not migrated yet (how to do that anyway?). The browser of the screenshot is firefox.
-
And what OS?
Scott
-
For migrating, see these posts.
http://forum.quasar-framework.org/topic/580/migration-0-13-to-0-14/3 & http://forum.quasar-framework.org/topic/522/upgrade-guide-for-0-14-beta
Scott