mirror of
https://github.com/flarum/core.git
synced 2025-08-18 14:22:02 +02:00
Allow locale to be selected in footer
This commit is contained in:
@@ -20,6 +20,11 @@ class LocaleManager
|
||||
return $this->locales;
|
||||
}
|
||||
|
||||
public function hasLocale($locale)
|
||||
{
|
||||
return isset($this->locales[$locale]);
|
||||
}
|
||||
|
||||
public function addTranslations($locale, $translations)
|
||||
{
|
||||
if (! isset($this->translations[$locale])) {
|
||||
|
Reference in New Issue
Block a user