mirror of https://github.com/pixelfed/pixelfed
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			18 lines
		
	
	
		
			353 B
		
	
	
	
		
			PHP
		
	
			
		
		
	
	
			18 lines
		
	
	
		
			353 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(1), function() {
 | 
						|
			$dir = resource_path('lang');
 | 
						|
			return Arr::flatten(array_diff(scandir($dir), array('..', '.', 'vendor')));
 | 
						|
		});
 | 
						|
	}
 | 
						|
 | 
						|
} |