mirror of
https://github.com/linuxserver/Heimdall.git
synced 2026-02-21 12:10:34 +09:00
fix: Fall back to english only if intl is missing.
This commit is contained in:
committed by
Attila Jozsef Kerekes
parent
153bb0e91d
commit
a3c75b2dd4
@@ -17,6 +17,11 @@ class SettingsSeeder extends Seeder
|
||||
*/
|
||||
public static function getSupportedLanguageMap()
|
||||
{
|
||||
if (! class_exists('Locale')) {
|
||||
Log::info('PHP Extension Intl not found. Falling back to English language support only.');
|
||||
return json_encode(['en' => 'English']);
|
||||
}
|
||||
|
||||
$languageDirectories = array_filter(glob(resource_path().'/lang/*'), 'is_dir');
|
||||
$result = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user