This commit is contained in:
parent
a67c3cf65f
commit
c7c6a4b987
@ -155,7 +155,13 @@ class LanguageService extends MediaService
|
|||||||
|
|
||||||
protected function getDefaultLocale(): string
|
protected function getDefaultLocale(): string
|
||||||
{
|
{
|
||||||
return config('app.fallback_locale', config('app.locale', 'en'));
|
$default = Language::where('is_default', true)->value('code');
|
||||||
|
|
||||||
|
if ($default) {
|
||||||
|
return $default;
|
||||||
|
}
|
||||||
|
|
||||||
|
return config('app.locale', 'en');
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function buildTranslationsFromFiles(string $locale): array
|
protected function buildTranslationsFromFiles(string $locale): array
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user