Skip to content

Commit

Permalink
Add comment for UT locale.
Browse files Browse the repository at this point in the history
  • Loading branch information
edwh committed Jun 1, 2022
1 parent 24c4c32 commit 437cdec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Middleware/LanguageSwitcher.php
Expand Up @@ -27,6 +27,7 @@ public function handle($request, Closure $next)
if (in_array($locale, LaravelLocalization::getSupportedLanguagesKeys())) {
$this->setLocale($locale);
}
// We have a 'UT' locale for testing.
} elseif (session('locale') && session('locale') != 'UT') {
// Otherwise, check if locale session already exists.
// If it does, continue to maintain that locale.
Expand Down

0 comments on commit 437cdec

Please sign in to comment.