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
+4
View File
@@ -25,9 +25,13 @@ class UserResource extends JsonResource
'bio' => $this->bio,
'accountVerified' => $this->account_verified_at !== null,
'physicalActivityLevel' => $this->physical_activity_level,
'physicalActivityLevelLabel' => $this->physical_activity_level?->getLabel(),
'weightGoal' => $this->weight_goal,
'weightGoalLabel' => $this->weight_goal?->getLabel(),
'pacePreference' => $this->pace_preference,
'pacePreferenceLabel' => $this->pace_preference?->getLabel(),
'sex' => $this->sex,
'sexLabel' => $this->sex?->getLabel(),
'dateOfBirth' => $this->date_of_birth?->toDateString(),
'nutritionGoals' => [
'calories' => (int) $this->daily_calorie_goal,