Hi Kevin,
I'm trying to get this package to work in Laravel 5.6 but it seems like the locale is not changing.
When I debug the setCurrentLocale
method in your package, I can see package is trying to change the locale to 'en', but when I use the helper method Localization::getCurrentLocale()
it returns the default locale.
The same thing happens when I try to retrieve the locale in a controller using \Localization::getCurrentLocale()
, it returns the default locale.
When I retrieve the locale after setting it with \Localization::setCurrentLocale('en')
the locale is actually changed. (For example in a controller)
Do you have any ideas?