I'm making a dashboard for French administrator, but for the relevance of the code, I obviously always use English.
The problem is that I don't see how to translate this, I haven't found any method to customize this on the field
My enum is declared like that :
<?php
namespace App\Enum;
use BenSampo\Enum\Enum;
final class StateType extends Enum
{
const InStock = "in_stock";
const OutStock = "out_stock";
const DataNotAvailable = "data_not_available";
}
I would like to keep enum in English. Only the state in the select should be translated if possible.
Would the LocalizedEnum interface available in BenSampo/laravel-enum perhaps work for this? I haven't tested it myself, but I can't see why it wouldn't work.
Hello!
I'm making a dashboard for French administrator, but for the relevance of the code, I obviously always use English. The problem is that I don't see how to translate this, I haven't found any method to customize this on the field
My enum is declared like that :
I would like to keep enum in English. Only the state in the select should be translated if possible.