Fix translation not being found

This commit is contained in:
Jay Trees 2022-03-22 10:41:23 +01:00
parent 91ff7c6eab
commit 5845436eb5

View file

@ -170,7 +170,7 @@ class Page
scandir(ROOT . '/translations') scandir(ROOT . '/translations')
) )
); );
$locale = \Locale::lookup($locales, $userLocale, true, 'en'); $locale = \Locale::lookup($locales, $userLocale, false, 'en');
$this->language = $locale; $this->language = $locale;
} }