-
Notifications
You must be signed in to change notification settings - Fork 439
Description
Context
I'm using the localization features in clndr.js to change the structure of the calendar into Portuguese (standard Portuguese, not the Brazillian variety).
Changing the moment.js locale to pt changed the language but it wasn't exactly a clean change: The week days were... not wrong, but in a format that is simply never used. I changed them with the built-in week day change feature in clndr.js.
However, the calendar controls are the real problem: Not only do the months not have proper capitalization, the calendar control buttons remain in English and will not change no mattter what.
I've tried changing the names inside the moment.js locale files themselves: Nothing. I've tried changing the "previous" and "next" words in the respective spans in the default template for clndr.js (which I am using): Nothing. And as should be implicit, changing the locale of moment.js didn't turn out the expected results.
Please help?
Expected Behavior
The default calendar template displays the proper translations with proper capitalization in the calendar controls.
Actual Behavior
The "previous" and "next" buttons remain in English and the displayed month has no capitalization.
Steps to Reproduce
- Create a calendar using the default template in clndr.js
- Change moment.js's locale to "pt" and apply the change to the calendar
- Observe the bug
Your Environment
- Version used: The latest in npm
- Browser Name and version: Microsoft Edge Version 106.0.1370.47
- Operating System and version (desktop or mobile): Windows 10 Pro 21H1
- Link to your project: Unable to provide
- Templating module used: Lodash (NOT Underscore)