Localize header text

This commit is contained in:
Roland Geider
2024-05-29 10:22:03 +02:00
parent caa2866bdf
commit cbd3d431c3
2 changed files with 8 additions and 1 deletions

View File

@@ -278,6 +278,10 @@
},
"onlyLogging": "Only track calories",
"onlyLoggingHelpText": "Check the box if you only want to log your calories and don't want to setup a detailed nutritional plan with specific meals",
"goalMacro": "Macro goals",
"@goalMacro": {
"description": "The goal for macronutrients"
},
"goalEnergy": "Energy goal",
"goalProtein": "Protein goal",
"goalCarbohydrates": "Carbohydrates goal",

View File

@@ -467,7 +467,10 @@ class _PlanFormState extends State<PlanForm> {
),
Row(
children: [
Text('Macro goals', style: Theme.of(context).textTheme.titleMedium),
Text(
AppLocalizations.of(context).goalMacro,
style: Theme.of(context).textTheme.titleMedium,
),
const SizedBox(width: 8),
Expanded(
child: DropdownButtonFormField<GoalType>(