diff --git a/config/laravellocalization.php b/config/laravellocalization.php index 4f0ba58bf4b6cf344acbcfe6acdb3ca338f006df..b54197c183ad9464cba292dd2c4d3a11487be5eb 100644 --- a/config/laravellocalization.php +++ b/config/laravellocalization.php @@ -299,7 +299,7 @@ return [ // Negotiate for the user locale using the Accept-Language header if it's not defined in the URL? // If false, system will take app.php locale attribute - 'useAcceptLanguageHeader' => false, + 'useAcceptLanguageHeader' => true, // If LaravelLocalizationRedirectFilter is active and hideDefaultLocaleInURL // is true, the url would not have the default application language @@ -307,6 +307,6 @@ return [ // IMPORTANT - When hideDefaultLocaleInURL is set to true, the unlocalized root is treated as the applications default locale "app.locale". // Because of this language negotiation using the Accept-Language header will NEVER occur when hideDefaultLocaleInURL is true. // - 'hideDefaultLocaleInURL' => true, + 'hideDefaultLocaleInURL' => false, ];