i18n: how to use calendar in multiple locales?
See original GitHub issueLet’s say I want to display, on the same view, the calendar in english and in french (or at least be able to toggle the language in app state).
Currently it seems the only way is to use a singleton like `LocaleConfig.defaultLocale = ‘fr’ but that does not seem appropriate to me. Couldn’t we pass the locale as props in any component that need localization?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:17 (4 by maintainers)
Top Results From Across the Web
i18n - V-Calendar
There are multiple ways which you can configure the locale for a specific calendar. Locales may be configured globally via the defaults object...
Read more >java - I18n and calendars - Can the calendar system remain ...
I guess that the answer could depend on the data which is only supported in one locale (chosen at time of setup), despite...
Read more >Docs Locale - FullCalendar
You can tailor the calendar for certain languages (aka “locales”). The locale setting it the most important, as it sets the defaults of...
Read more >Localization in Flutter Event Calendar (SfCalendar) - Syncfusion
By default, the calendar widget supports US English localizations. You can change the other languages by specifying the MaterialApp properties and adding the ......
Read more >Internationalization (i18n) and Localization (L10n)
Internationalization (i18n) and Localization (L10n) are two important features ... Components such as calendar and schedule use a shared PrimeFaces.locales ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve successfully switched from english to french with the following:
Then you just have to run
LocaleConfig.defaultLocale = 'fr'
orLocaleConfig.defaultLocale = 'en'
before triggering a re-render and you’ll have the calendar localized.If anyone need this in PT-BR: