-
-
Notifications
You must be signed in to change notification settings - Fork 509
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
How to fallback to language code if country code is not in supported locales? #505
Comments
Did you solve this? So simple thing and I cant figure out how to do it. |
Nothing? Noone? So basic funcionality and noone solved this? |
Same question here oO |
A browser usually has multiple languages set with different ranking values, so I am not sure if this is a realistic case, that a browser language has However, adding this functionality to Accept-Language-Header method should't be a problem. Maybe we should make this general rule, whenever a language like xx-yy is requested, check at the end if |
The laravel/framework 7.21.0 implements an App::setFallbackLocale method. |
@iwasherefirst2 Can you take a look at that pull request? Maybe this is the solution. #731 |
I have the following issue (maybe a configuration issue?):
I have
en
defined in the supported locales and default language set tode
.useAcceptLanguageHeader
is set to true.When browser requests
en-US
via Accept-Language-Header, thede
locale is set.How to specify, that it should fall back to
en
ifen-US
is not available?The text was updated successfully, but these errors were encountered: