You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Hi!
When stepping to latest Bryntum version (5.3.1) I encountered an issue with locales.
I followed the migration guide for locales so the config should be correct and applied in the right order.
We want to use the existing locale "En" and only update the DateHelper locale to "sv-SE".
This is done with this code:
This publishes the locale and then we apply the locale with:
LocaleManager.applyLocale("En");
The issue we are encountering is that the locale for the DateHelper is applied but not used.
When I log the locale object with:
LocaleHelper.locales
I can see that the existing "En" locale has the updated DateHelper, but the dates and time format in Bryntum are not updated to Swedish time date locale.
To work around the issue we have to apply another locale and then apply the "En" locale again to get Bryntum to use the Swedish date locales.
The resulting application of locales then looks like this.
LocaleManager.applyLocale({
localeName: "En",
DateHelper: {
locale: "sv-SE",
weekStartDay: 1
}
});
LocaleManager.applyLocale("own_locale", {});
LocaleManager.applyLocale("En");
```"
If you go to any Scheduler Pro demo, like the inline data, and try to run the applyLocales just like the user mentioned, you get the same behavior.
The text was updated successfully, but these errors were encountered:
Forum post
"Hi!
When stepping to latest Bryntum version (5.3.1) I encountered an issue with locales.
I followed the migration guide for locales so the config should be correct and applied in the right order.
We want to use the existing locale "En" and only update the DateHelper locale to "sv-SE".
This is done with this code:
This publishes the locale and then we apply the locale with:
The issue we are encountering is that the locale for the DateHelper is applied but not used.
When I log the locale object with:
I can see that the existing "En" locale has the updated DateHelper, but the dates and time format in Bryntum are not updated to Swedish time date locale.
To work around the issue we have to apply another locale and then apply the "En" locale again to get Bryntum to use the Swedish date locales.
The resulting application of locales then looks like this.
The text was updated successfully, but these errors were encountered: