I’m using ember-i18n to switch between two languages on the fly, and it works great.
The only problem is that all the text related to moment.js and bootstrap-datepicker (which uses moment underwater) is not effected and the language there remains unchanged.
Is there an elegant manner to integrate these two so that the language switching is propogated to moment also?
The datepicker calendar should switch for weekdays, months etc and days since also.
As for bootstrap-datepicker, you’ll need to rerender it on locale change.
Slightly on topic, ember-intl supports date/time formatting and has the behavior you’re after baked into the library. It does not use moment, it uses the native Intl API that most modern browsers ship with now.