8000 Application Fallback Locale not work · Issue #86 · laravel/framework · GitHub
[go: up one dir, main page]

Skip to content

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

Closed
PATROMO opened this issue Jan 17, 2013 · 4 comments
Closed

Application Fallback Locale not work #86

PATROMO opened this issue Jan 17, 2013 · 4 comments

Comments

@PATROMO
Copy link
PATROMO commented Jan 17, 2013

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".

@ghost
Copy link
ghost commented Jan 18, 2013

Perhaps because you are setting 'es' as a locale? Shouldn't it be set as 'en'?

App::setLocale('en');

Instead of

App::setLocale('es');

@ajmarmar
Copy link

Hi, I'm trying its and in L4 don't change the language.

@AmyStephen
Copy link

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. )

@taylorotwell
Copy link
Member

This is fixed. Thanks.

dbpolito pushed a commit to dbpolito/framework that referenced this issue Oct 1, 2019
gonzalom pushed a commit to Hydrane/tmp-laravel-framework that referenced this issue Oct 12, 2023
…e-dispatcher

Allow developers to register their own FastRoute dispatcher with the app.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
0