You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When autowiring LocaleAwareInterface into a service, if the locale has been changed via, say routing, LocalAwareInterface::getLocale() returns the default locale.
How to reproduce
change your application's locale (in any way except using LocaleSwitcher)
inject LocaleAwareInterface into a service/controller and look at getLocale() - it will be your app's default locale
Possible Solution
LocaleAwareInterface is an alias for LocaleSwitcher which is also LocaleAware but it doesn't look like it's modified when the locale is changed elsewhere.
I can work on a fix but wanted to clarify that this, is indeed, a bug.