mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-05 05:45:46 -05:00
19 lines
367 B
PHP
19 lines
367 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Traits\Helpers;
|
|
|
|
use Pterodactyl\Services\Translations\LanguageRegistry;
|
|
|
|
trait AvailableLanguages
|
|
{
|
|
/**
|
|
* @return array<string, string>
|
|
*/
|
|
public function getAvailableLanguages(bool $localize = false): array
|
|
{
|
|
return resolve(LanguageRegistry::class)->available($localize);
|
|
}
|
|
}
|