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
Browsers usually send the Accept-Language-Header with country code in the hyphen notation e.g. de-DE, but the language negotiator only matches against de_DE in the current version of the config file.
Also, there is no the "lang" property in any line of the the bundled config.php https://github.com/mcamara/laravel-localization/blob/master/src/config/config.php although the languageNegotiator is trying to check if it matches with the key. Maybe it makes sense to to add the "lang" property on the fly when doing the negotiation, taking the Locale::canonizalize() of the key? If the property is not set manually.
Browsers usually send the Accept-Language-Header with country code in the hyphen notation e.g.
de-DE
, but the language negotiator only matches againstde_DE
in the current version of the config file.laravel-localization/src/Mcamara/LaravelLocalization/LanguageNegotiator.php
Line 63 in bafd681
In the current version of the config file all country aware languages are formatted with the underscore character.
laravel-localization/src/config/config.php
Line 38 in bafd681
This results in a bad match and the requested language
de-DE
is not set because it does not matchde
and it does not matchde_DE
.The text was updated successfully, but these errors were encountered: