feat: lang middleware and filament translations
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user