Certified/app/Enums/Locale.php
Joël van de Wouw ac340d125c
Some checks failed
linter / quality (push) Failing after 13s
tests / ci (8.3) (push) Failing after 2s
tests / ci (8.4) (push) Failing after 2s
tests / ci (8.5) (push) Failing after 3s
Initial commit
Certificate manager built on Laravel 13, Livewire 4, and Flux.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-12 14:44:58 +02:00

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());
}
}