forked from metin2/web
Translated Account Information page, minor refactoring regarding IS currency names
This commit is contained in:
@ -7,11 +7,19 @@ enum MallItemPricingEnum: string
|
||||
case CASH = 'CASH';
|
||||
case MILEAGE = 'MILEAGE';
|
||||
|
||||
public function description(): string
|
||||
public function name(): string
|
||||
{
|
||||
return match($this) {
|
||||
self::CASH => __('mall/main.currency.cash'),
|
||||
self::MILEAGE => __('mall/main.currency.mileage')
|
||||
};
|
||||
}
|
||||
|
||||
public function longName(): string
|
||||
{
|
||||
return match($this) {
|
||||
self::CASH => __('mall/main.currency.cash_long'),
|
||||
self::MILEAGE => __('mall/main.currency.mileage_long')
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user