feat: lang middleware and filament translations
This commit is contained in:
@@ -13,9 +13,9 @@ enum WeightGoal: string implements HasLabel
|
||||
public function getLabel(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::LOSE_WEIGHT => 'Perdre du poids',
|
||||
self::MAINTAIN_WEIGHT => 'Maintenir le poids',
|
||||
self::GAIN_WEIGHT => 'Prendre du poids',
|
||||
self::LOSE_WEIGHT => __('enums.weight_goal.lose_weight'),
|
||||
self::MAINTAIN_WEIGHT => __('enums.weight_goal.maintain_weight'),
|
||||
self::GAIN_WEIGHT => __('enums.weight_goal.gain_weight'),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user