Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improper translations with the localization features #368

Open
FlyHighMyBlackEagle opened this issue Oct 25, 2022 · 0 comments
Open

Improper translations with the localization features #368

FlyHighMyBlackEagle opened this issue Oct 25, 2022 · 0 comments

Comments

@FlyHighMyBlackEagle
Copy link

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

  1. Create a calendar using the default template in clndr.js
  2. Change moment.js's locale to "pt" and apply the change to the calendar
  3. 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant