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

fix: Several date/time components use locales correctly #2440

Merged
merged 6 commits into from
Nov 6, 2020

Conversation

vladitasev
Copy link
Contributor

This change addresses several problems with the usage of locale-related classes in all date/time components:

  • languageAware missing for a couple of components that depend on locale data
  • LocaleData.js used to be instantiated in the constructor for several components. This means that even if the locale changes at runtime, the instance of LocaleData.js will never update. Therefore it must be in onBeforeRendering instead.
  • The base/src/locale/Locale.js and localization/LocaleData.js class instances can be reused among all components as they are read-only once initialized

fixes: #2439

@vladitasev vladitasev merged commit dd87a53 into master Nov 6, 2020
@vladitasev vladitasev deleted the locale-usage-fix branch November 6, 2020 08:53
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

Successfully merging this pull request may close these issues.

Calling setLanguage does not work for DatePicker
2 participants