Add initial translations for enumerated values
This commit is contained in:
@@ -2,16 +2,16 @@
|
||||
|
||||
namespace App\Models\Enums;
|
||||
|
||||
use Illuminate\Support\Facades\Facade;
|
||||
|
||||
class PirepState extends EnumBase {
|
||||
|
||||
const REJECTED = -1;
|
||||
const PENDING = 0;
|
||||
const ACCEPTED = 1;
|
||||
|
||||
protected static $labels = [
|
||||
PirepState::REJECTED => 'Rejected',
|
||||
PirepState::PENDING => 'Pending',
|
||||
PirepState::ACCEPTED => 'Accepted',
|
||||
PirepState::REJECTED => 'system.pireps.state.rejected',
|
||||
PirepState::PENDING => 'system.pireps.state.pending',
|
||||
PirepState::ACCEPTED => 'system.pireps.state.accepted',
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user