Update Localization util, filter out .DS_Store

This commit is contained in:
Daniel Supernault 2021-10-30 00:56:48 -06:00
parent 4dda3b3763
commit 0107e8fd68
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -11,8 +11,8 @@ class Localization {
{ {
return Cache::remember('core:localization:languages', now()->addDays(1), function() { return Cache::remember('core:localization:languages', now()->addDays(1), function() {
$dir = resource_path('lang'); $dir = resource_path('lang');
return Arr::flatten(array_diff(scandir($dir), array('..', '.', 'vendor'))); return Arr::flatten(array_diff(scandir($dir), array('..', '.', 'vendor', '.DS_Store')));
}); });
} }
} }