-
Notific
8000
ations
You must be signed in to change notification settings - Fork 11.4k
Application Fallback Locale not work #86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Perhaps because you are setting 'es' as a locale? Shouldn't it be set as 'en'?
Instead of
|
Hi, I'm trying its and in L4 don't change the language. |
It doesn't appear to me that Lang::get expects 'app.language' for the $language parameter; For that reason, it could be just returning what you sent in. It does appear that if you are looking for the default language, calling Lang::get(); should do the trick. (If that doesn't work, then looking more closely at @falzhobel 's response might be worthwhile. ) |
This is fixed. Thanks. |
Apply fixes from StyleCI
…e-dispatcher Allow developers to register their own FastRoute dispatcher with the app.
app/config/app.php -> 'fallback_locale' => 'en',
lang/en/app.php -> 'language' => 'English',
App::setLocale('es');
Lang::get('app.language'); <-- return "app.language" and not "English".
The text was updated successfully, but these errors were encountered: