1
0
mirror of https://github.com/flarum/core.git synced 2025-08-16 13:24:11 +02:00

Fix installation

This commit is contained in:
Toby Zerner
2015-10-20 22:07:35 +10:30
parent 067552efe5
commit 22ffb76cb5
3 changed files with 3 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ class LocaleServiceProvider extends AbstractServiceProvider
$this->app->alias('Flarum\Locale\LocaleManager', 'flarum.localeManager');
$this->app->singleton('translator', function () {
$defaultLocale = $this->app->make('flarum.settings')->get('default_locale');
$defaultLocale = $this->app->isInstalled() ? $this->app->make('flarum.settings')->get('default_locale') : 'en';
$translator = new Translator($defaultLocale, new MessageSelector());
$translator->setFallbackLocales([$defaultLocale]);