1
0
forked from metin2/web

Translated Account Information page, minor refactoring regarding IS currency names

This commit is contained in:
2025-01-01 11:29:15 +02:00
parent 505d9eb00a
commit 2491f0bece
11 changed files with 161 additions and 33 deletions

View File

@ -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')
};
}
}