feat: lang middleware and filament translations

This commit is contained in:
2026-05-21 14:57:52 +02:00
parent f24999d7fb
commit 52a2104fdf
16 changed files with 316 additions and 95 deletions
+3 -3
View File
@@ -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'),
};
}
}