Skip to content

Commit 76adb1a

Browse files
committed
Localize field names in routine form
1 parent 8a1b615 commit 76adb1a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

lib/l10n/app_en.arb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@
155155
"@category": {
156156
"description": "Category for an exercise, ingredient, etc."
157157
},
158+
"endDate": "End date",
159+
"startDate": "Start date",
158160
"routines": "Routines",
159161
"newRoutine": "New routine",
160162
"noRoutines": "You have no routines",

lib/widgets/routines/forms/routine.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ class _RoutineFormState extends State<RoutineForm> {
108108
}
109109
return null;
110110
},
111-
decoration: const InputDecoration(
112-
labelText: 'Start date',
111+
decoration: InputDecoration(
112+
labelText: i18n.startDate,
113113
suffixIcon: Icon(
114114
Icons.calendar_today,
115115
key: Key('calendarIcon'),
@@ -145,8 +145,8 @@ class _RoutineFormState extends State<RoutineForm> {
145145
key: const Key('field-end-date'),
146146
// Stop keyboard from appearing
147147
readOnly: true,
148-
decoration: const InputDecoration(
149-
labelText: 'End date',
148+
decoration: InputDecoration(
149+
labelText: i18n.endDate,
150150
suffixIcon: Icon(
151151
Icons.calendar_today,
152152
key: Key('calendarIcon'),

0 commit comments

Comments
 (0)