When setting language via localize, ng's localization filters do not respect it
ChristianWeyer opened this issue · 3 comments
ChristianWeyer commented
When setting the language with
localize.setLanguage(lang);
and use something like
{{ '2012-09-01' | date:'medium' }}
then the date is not displayed in the prev. set language, but in the 'default' language.
lavinjj commented
Sorry, but the service does not handle date conversions. It is really only designed to provide translations based on the lookup table. You want to look into the locale services provided by the core AngularJS library, it provides that type of capability. I'm willing to work with you on an enhancement that would load and execute the appropriate locale.js file based on the call to setLanguage.
Regards,
Jim
ChristianWeyer commented
That is a good idea.
lavinjj commented
Closed - Outside scope of project.