bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
54 stars 6 forks source link

Make DateHelper.applyLocale available on public API #9865

Open marciogurka opened 2 months ago

marciogurka commented 2 months ago

Forum post

"Hi,

in our Gantt application it's possible that the text language locale differs from the date locale. To assure that the date picker starts with the correct week day according to the date locale (e.g. 1 for de-DE and 0 for en-EN) we customized the localization. While doing this, we call finally LocaleManager.applyLocale to publish our adaptations. Unexpectedly DateHelper.applyLocale is not called in this case and therefore the weekStartDay remains unchanged. We could solve this problem by calling first DateHelper.applyLocale() and then LocaleManager.applyLocale(...). But unfortunately DateHelper.applyLocale is not part of the public API.

Is there another solution for this problem or - if not - can you publish this method also in your API or call DateHelper.applyLocale when executing LocaleManager.applyLocale?"