Skip to content

Commit cbd3d43

Browse files
committed
Localize header text
1 parent caa2866 commit cbd3d43

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

lib/l10n/app_en.arb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,10 @@
278278
},
279279
"onlyLogging": "Only track calories",
280280
"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",
281+
"goalMacro": "Macro goals",
282+
"@goalMacro": {
283+
"description": "The goal for macronutrients"
284+
},
281285
"goalEnergy": "Energy goal",
282286
"goalProtein": "Protein goal",
283287
"goalCarbohydrates": "Carbohydrates goal",

lib/widgets/nutrition/forms.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,10 @@ class _PlanFormState extends State<PlanForm> {
467467
),
468468
Row(
469469
children: [
470-
Text('Macro goals', style: Theme.of(context).textTheme.titleMedium),
470+
Text(
471+
AppLocalizations.of(context).goalMacro,
472+
style: Theme.of(context).textTheme.titleMedium,
473+
),
471474
const SizedBox(width: 8),
472475
Expanded(
473476
child: DropdownButtonFormField<GoalType>(

0 commit comments

Comments
 (0)