1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 17:26:43 +00:00
pixelfed/app/Util/Localization/Localization.php

18 lines
353 B
PHP
Raw Normal View History

2019-02-28 03:14:53 +00:00
<?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(1), function() {
2019-02-28 03:14:53 +00:00
$dir = resource_path('lang');
return Arr::flatten(array_diff(scandir($dir), array('..', '.', 'vendor')));
});
}
}