feat: lang middleware and filament translations
This commit is contained in:
@@ -15,11 +15,11 @@ enum PhysicalActivityLevel: string implements HasLabel
|
||||
public function getLabel(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::SEDENTARY => 'Sédentaire',
|
||||
self::LIGHTLY_ACTIVE => 'Légèrement actif',
|
||||
self::MODERATELY_ACTIVE => 'Modérément actif',
|
||||
self::VERY_ACTIVE => 'Très actif',
|
||||
self::ATHLETE => 'Athlète',
|
||||
self::SEDENTARY => __('enums.physical_activity_level.sedentary'),
|
||||
self::LIGHTLY_ACTIVE => __('enums.physical_activity_level.lightly_active'),
|
||||
self::MODERATELY_ACTIVE => __('enums.physical_activity_level.moderately_active'),
|
||||
self::VERY_ACTIVE => __('enums.physical_activity_level.very_active'),
|
||||
self::ATHLETE => __('enums.physical_activity_level.athlete'),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user