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
I have experienced this issue, all my configuration is correct following installation guide, I amb using gettext handler as stated in configuration.
'handler' => 'gettext',
For setting the locale I am using the expected function LaravelGettext::setLocale($locale) within a Middleware, which is loaded after start session. It sets locale correctly, and when I debug the Controller with LaravelGettext::getLocale() it returns the expected locale. However, it shows the page in en_US
Above lines are used in my middleware, second line outputs the expected locale, but page still are not showing in the expected language, and everytime the show translations for en_US locale.
The text was updated successfully, but these errors were encountered:
I am using Laravel 5.5.48 with nginx.
I have experienced this issue, all my configuration is correct following installation guide, I amb using gettext handler as stated in configuration.
'handler' => 'gettext',
For setting the locale I am using the expected function LaravelGettext::setLocale($locale) within a Middleware, which is loaded after start session. It sets locale correctly, and when I debug the Controller with LaravelGettext::getLocale() it returns the expected locale. However, it shows the page in en_US
LaravelGettext::setLocale($locale);
$gettextLocale = LaravelGettext::getLocale();
Above lines are used in my middleware, second line outputs the expected locale, but page still are not showing in the expected language, and everytime the show translations for en_US locale.
The text was updated successfully, but these errors were encountered: