From ca1814091add55cfc1fb8e9c69281c5b5533efd9 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 27 Feb 2019 20:15:18 -0700 Subject: [PATCH] Update SiteController --- app/Http/Controllers/SiteController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/SiteController.php b/app/Http/Controllers/SiteController.php index 2134a9424..83e18b20b 100644 --- a/app/Http/Controllers/SiteController.php +++ b/app/Http/Controllers/SiteController.php @@ -6,6 +6,7 @@ use Illuminate\Http\Request; use App, Auth, Cache, View; use App\Util\Lexer\PrettyNumber; use App\{Follower, Page, Profile, Status, User, UserFilter}; +use App\Util\Localization\Localization; class SiteController extends Controller { @@ -31,7 +32,7 @@ class SiteController extends Controller public function changeLocale(Request $request, $locale) { // todo: add other locales after pushing new l10n strings - $locales = ['en']; + $locales = Localization::languages(); if(in_array($locale, $locales)) { session()->put('locale', $locale); }