Closed RahulKannan12 closed 1 year ago
Looking cool
Some customization tips for the style of the datepicker to get it to fit more into the tool:
Consider using the preferences font in the date picker as well font-family: 'Montserrat', sans-serif
Very bad mockup
I reduced the width of the year, added a left margin, then increased the width of the month. Changed the fonts and size.
If there's a way to make the column sizes consistent, it'd be good. Right now Fri has a smaller width than Wed
The left and right buttons are also moving up a little when we hover them, which is a little weird.
Reducing the width of the preferences page broke the page. I think the width of the date field is much bigger than it needs to be
The behavior of the feature is great, just tested changing the languages and it switches the datepicker even without saving.
Related issue
Closes #949
Context / Background
The date picker isn't localized, always sticking with language English.
What change is being introduced by this PR?
This PR will introduce localized date picker in preferences window alone - Later this change will be incorporated to other date picker available across in the tool. I'm using the existing translations available for Month names and week days name, so no new translations are needed, and also it cuts off our dependency on dealing with jquery-ui translation library.
Changing the language preference to Espanol
Before change
After change
How will this be tested?
The language change in preference window should load their locale specific date picker.