Skip to content

Commit

Permalink
Merge pull request #1141 from phecho/fixes-language-detection
Browse files Browse the repository at this point in the history
Fixes issue #1140
  • Loading branch information
jbrooksuk committed Nov 16, 2015
2 parents 28893f4 + 94c46d1 commit 14e1c3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Middleware/Localize.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function handle($request, Closure $next)
$userLanguage = $this->config->get('app.locale');

foreach ($supportedLanguages as $language) {
$language = substr($language, 0, 2);
$language = str_replace('_', '-', $language);

if (isset($this->langs[$language])) {
$userLanguage = $language;
Expand Down

0 comments on commit 14e1c3d

Please sign in to comment.