diff options
Diffstat (limited to 'lib/views/recipe_view.dart')
-rw-r--r-- | lib/views/recipe_view.dart | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/views/recipe_view.dart b/lib/views/recipe_view.dart index c22ea2b..3aaa160 100644 --- a/lib/views/recipe_view.dart +++ b/lib/views/recipe_view.dart @@ -292,8 +292,7 @@ class RecipeViewState extends State<RecipeView> { final _ingredients = _unsavedRecipe.description!.split("\n")..retainWhere((element) => element.startsWith("- ")); if (_ingredients.isEmpty) { - // TODO: translation - widget.showToastCallback!("No ingredients found", "", () {}); + widget.showToastCallback!(AppLocalizations.of(context)!.ingredientsError, "", () {}); return; } @@ -308,8 +307,7 @@ class RecipeViewState extends State<RecipeView> { ShoplistData.save(); if (widget.showToastCallback != null) { - // TODO: translation - widget.showToastCallback!("Added to Shoplist", "", () {}); + widget.showToastCallback!(AppLocalizations.of(context)!.ingredientsAdded, "", () {}); } } |