Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

amMoment.changeLocale and ui-router #128

Open
johannesjo opened this issue Apr 15, 2015 · 4 comments
Open

amMoment.changeLocale and ui-router #128

johannesjo opened this issue Apr 15, 2015 · 4 comments

Comments

@johannesjo
Copy link

When using ui-router the locale is only loaded correctly on the first page. After triggering a route change it defaults back to the default browser language.

I worked around this by setting the local on $stateChangeStart

$rootScope.$on('$stateChangeStart', function (event, next) {
      amMoment.changeLocale('de');
});
@corentin-gautier
Copy link

I'm having the same issue, but this work around does not resolve it entirely for me ... any ideas on what causes it ?

@urish
Copy link
Owner

urish commented Jul 31, 2015

I still have no idea what could be causing this, have you found out why this happens?

Otherwise, I'd appreciate a short plunkr example demonstrating this issue so I could investigate it. Thanks!

@rooswelt
Copy link

rooswelt commented Apr 5, 2016

For me problem seems related to another lib, angular-timer.
Once removed it, problem disappeared.

Now I need to understand what's wrong with angular-timer, 'cause I need it!

@rooswelt
Copy link

rooswelt commented Apr 5, 2016

Specifying "language" attribute for each <timer> in my code seems resolve problem,

Hope it helps

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants