Certificate manager built on Laravel 13, Livewire 4, and Flux. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
25 lines
460 B
PHP
25 lines
460 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
enum Locale: string
|
|
{
|
|
case English = 'en';
|
|
case Dutch = 'nl';
|
|
|
|
public function label(): string
|
|
{
|
|
return match ($this) {
|
|
self::English => __('English'),
|
|
self::Dutch => __('Dutch'),
|
|
};
|
|
}
|
|
|
|
/**
|
|
* @return array<int, string>
|
|
*/
|
|
public static function values(): array
|
|
{
|
|
return array_map(fn (self $locale) => $locale->value, self::cases());
|
|
}
|
|
}
|