Our powerful JS Calendar component
Hi,
We are currently looking to translate the weekday names within the calendar editor. However, we couldn’t find a clear way to accomplish this using the locale files. To help illustrate our issue, we’ve attached an image for clarity.
Could you kindly guide us on how to proceed?
Thank you in advance for your assistance!
Best regards,
-
Attachments
-
- Screenshot 2024-12-03 at 11.40.15.png (82.41 KiB) Viewed 420 times
This is not a Calendar issue, it's Gantt.
Also. All texts are localized according to which locale you are using. Here, I'm using Swedish:
- Screenshot 2024-12-03 at 11.55.16.png (338.29 KiB) Viewed 415 times
Hi,
we saw that it's localize in "He" too, but the translation is wrong and we want to fix it.
attaching an image of the current translation + the right translation in "He".
Monday - שני
Tuesday - שלישי
Wednesday - רביעי
Thursday - חמישי
Friday - שישי
Saturday - שבת
Sunday - ראשון.
Best regards,
-
Attachments
-
- Screenshot 2024-12-03 at 13.18.09.png (7.84 KiB) Viewed 414 times
Hi,
Could you please tell us which version of Calendar do you use?
All the best,
Alex Lazarev
How to ask for help? Please read our Support Policy
We do not write the code in bounds of forum support. If you need help with development, contact us via bryntum.com/services
We derive the day names from the browser's own rendition of day names using the `weekday' 'long' and 'short' format:
- Screenshot 2024-12-03 at 14.04.47.png (87.24 KiB) Viewed 397 times
But that's for the dddd
and ddd
formats.
For the dd
format which is used in that context, we use formats.ddd(date).substring(0, 2)
, so we use the short
name we get from the browser, and the first two characters. Is this not correct for the "he" locale?
But like all things, it's all configurable as a JSON object which gets merged in over the defaults, so:
- Screenshot 2024-12-03 at 14.19.57.png (624.41 KiB) Viewed 396 times
Hi,
Thank you for your response!