mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-02 11:13:16 +00:00
18 lines
354 B
PHP
18 lines
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')));
|
||
|
});
|
||
|
}
|
||
|
|
||
|
}
|