Handle locales that we haven't accounted for

This commit is contained in:
James Brooks 2017-01-02 15:57:40 +00:00
parent c7627d8337
commit 287e9b5c6c

View File

@ -58,7 +58,10 @@ class TimezoneLocaleComposer
$langs = array_map(function ($lang) use ($enabledLangs) {
$locale = basename($lang);
return [$locale => $enabledLangs[$locale]];
return [$locale => array_get($enabledLangs, $locale, [
'name' => $locale,
'subset' => null,
])];
}, glob(base_path('resources/lang').'/*'));
$langs = call_user_func_array('array_merge', $langs);