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 PacePreference: string implements HasLabel
public function getLabel(): string
{
return match ($this) {
self::SLOW => 'Lent',
self::NORMAL => 'Normal',
self::FAST => 'Rapide',
self::SLOW => __('enums.pace_preference.slow'),
self::NORMAL => __('enums.pace_preference.normal'),
self::FAST => __('enums.pace_preference.fast'),
};
}
}