Skip to content

Commit

Permalink
fix: Hard-coded strings
Browse files Browse the repository at this point in the history
  • Loading branch information
TomBursch committed Mar 16, 2024
1 parent 78b16a6 commit 7eb8009
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
6 changes: 6 additions & 0 deletions kitchenowl/lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"@dangerZone": {},
"@darkmode": {},
"@date": {},
"@defaultKey": {},
"@defaultWord": {},
"@delete": {},
"@description": {},
Expand Down Expand Up @@ -131,6 +132,7 @@
"@householdNew": {},
"@householdSwitch": {},
"@households": {},
"@icon": {},
"@imageSelect": {},
"@import": {},
"@importStartedHint": {},
Expand Down Expand Up @@ -210,6 +212,7 @@
"@onboardingTitle": {},
"@optional": {},
"@or": {},
"@ordering": {},
"@other": {},
"@overview": {},
"@owesAB": {
Expand Down Expand Up @@ -385,6 +388,7 @@
"dangerZone": "Danger Zone",
"darkmode": "Dark mode",
"date": "Date",
"defaultKey": "Default key",
"defaultWord": "Default",
"delete": "Delete",
"description": "Description",
Expand Down Expand Up @@ -430,6 +434,7 @@
"householdNew": "New household",
"householdSwitch": "Switch household",
"households": "Households",
"icon": "Icon",
"imageSelect": "Select an image",
"import": "Import",
"importStartedHint": "Import started, this may take a few minutes.",
Expand Down Expand Up @@ -486,6 +491,7 @@
"onboardingSettingsTitle": "Hi {name}, let's set up the server!",
"onboardingTitle": "Let's create a user",
"optional": "Optional",
"ordering": "Ordering",
"or": "or",
"other": "Other",
"overview": "Overview",
Expand Down
20 changes: 12 additions & 8 deletions kitchenowl/lib/pages/item_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -255,22 +255,26 @@ class _ItemPageState<T extends Item> extends State<ItemPage<T>> {
),
ListTile(
contentPadding: EdgeInsets.zero,
title: Text("Ordering"),
title:
Text(AppLocalizations.of(context)!.ordering),
trailing: Text(widget.item.ordering.toString()),
),
if (state.icon != null)
ListTile(
contentPadding: EdgeInsets.zero,
title: Text(AppLocalizations.of(context)!.icon),
trailing: Text(state.icon ?? ""),
),
ListTile(
contentPadding: EdgeInsets.zero,
title: Text("Icon"),
trailing: Text(state.icon ?? ""),
),
ListTile(
contentPadding: EdgeInsets.zero,
title: Text("Default"),
title: Text(
AppLocalizations.of(context)!.defaultWord),
trailing: Text(widget.item.isDefault.toString()),
),
ListTile(
contentPadding: EdgeInsets.zero,
title: Text("Default name"),
title: Text(
AppLocalizations.of(context)!.defaultKey),
trailing: Text(widget.item.defaultKey ?? ""),
),
const Divider(),
Expand Down

0 comments on commit 7eb8009

Please sign in to comment.