1
0
Fork 0
forked from mirror/pixelfed
pixelfed/app/Util/Localization/Localization.php
2019-02-27 20:14:53 -07:00

18 lines
No EOL
354 B
PHP

<?php
namespace App\Util\Localization;
use Cache;
use Illuminate\Support\Arr;
class Localization {
public static function languages()
{
return Cache::remember('core:localization:languages', now()->addDays(14), function() {
$dir = resource_path('lang');
return Arr::flatten(array_diff(scandir($dir), array('..', '.', 'vendor')));
});
}
}