From 7a57f1f3097a406e2a58282cd0b5adafa7aeddbe Mon Sep 17 00:00:00 2001 From: Dominik Pfennig <dominik@suma-ev.de> Date: Wed, 30 Nov 2016 14:12:11 +0100 Subject: [PATCH] Der Browser leitet nun automatisch zur in den Browsereinstellungen bevorzugten Sprache weiter --- config/laravellocalization.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/laravellocalization.php b/config/laravellocalization.php index 4f0ba58bf..b54197c18 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, ]; -- GitLab