feat: add meal planning feature with API integration
- Introduced MealPlanApiPaths for handling meal plan related API endpoints. - Added MealPlanScreen for displaying and managing meal plans. - Implemented MealPlanRepository for fetching and updating meal plan data. - Created data models: MealPlanEntry, MealPlanRecipe, InventoryCompareItem, ShoppingItem, and MealPlanDashboard. - Integrated meal plan functionality into the app router and UI. - Updated localization files for meal plan related strings in English and Swedish. - Added state management for meal plan using Riverpod.
This commit is contained in:
@@ -2,6 +2,67 @@
|
||||
"@@locale": "en",
|
||||
"appTitle": "Recipe App",
|
||||
"retryAction": "Retry",
|
||||
"mealPlanTitle": "Meal plan",
|
||||
"mealPlanLoading": "Loading meal plan...",
|
||||
"mealPlanWeekPrevious": "Previous week",
|
||||
"mealPlanWeekNext": "Next week",
|
||||
"mealPlanWeekCurrent": "Current week",
|
||||
"mealPlanDayNoRecipe": "Nothing planned",
|
||||
"mealPlanSelectRecipe": "Choose recipe",
|
||||
"mealPlanViewRecipe": "View recipe",
|
||||
"mealPlanServingsLabel": "Servings",
|
||||
"mealPlanResetServings": "Reset",
|
||||
"mealPlanSaving": "Saving...",
|
||||
"mealPlanPlannedRecipes": "{count, plural, one {# recipe planned} other {# recipes planned}}",
|
||||
"@mealPlanPlannedRecipes": {
|
||||
"placeholders": {
|
||||
"count": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mealPlanShoppingTitle": "Shopping list",
|
||||
"mealPlanPickRecipeHint": "Choose recipes above to see the combined ingredient list.",
|
||||
"mealPlanNoShoppingItems": "No ingredients to show for this week.",
|
||||
"mealPlanNoRecipesTitle": "There are no recipes to plan yet.",
|
||||
"mealPlanNoRecipesDescription": "Create at least one recipe first, then add it to the meal plan.",
|
||||
"mealPlanMissingCount": "{count, plural, one {# missing} other {# missing}}",
|
||||
"@mealPlanMissingCount": {
|
||||
"placeholders": {
|
||||
"count": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mealPlanPartialCount": "{count, plural, one {# partially at home} other {# partially at home}}",
|
||||
"@mealPlanPartialCount": {
|
||||
"placeholders": {
|
||||
"count": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mealPlanEnoughCount": "{count, plural, one {# at home} other {# at home}}",
|
||||
"@mealPlanEnoughCount": {
|
||||
"placeholders": {
|
||||
"count": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mealPlanPantryCount": "{count, plural, one {# pantry staple} other {# pantry staples}}",
|
||||
"@mealPlanPantryCount": {
|
||||
"placeholders": {
|
||||
"count": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mealPlanAllAtHome": "You already have everything at home.",
|
||||
"mealPlanStatusMissing": "Missing",
|
||||
"mealPlanStatusPartial": "Partially at home",
|
||||
"mealPlanStatusEnough": "At home",
|
||||
"mealPlanStatusPantry": "Pantry staple",
|
||||
"loginTitle": "Sign in",
|
||||
"usernameLabel": "Username",
|
||||
"usernameRequired": "Enter your username.",
|
||||
|
||||
@@ -2,6 +2,67 @@
|
||||
"@@locale": "sv",
|
||||
"appTitle": "Recipe App",
|
||||
"retryAction": "Försök igen",
|
||||
"mealPlanTitle": "Matsedel",
|
||||
"mealPlanLoading": "Laddar matsedel...",
|
||||
"mealPlanWeekPrevious": "Förra veckan",
|
||||
"mealPlanWeekNext": "Nästa vecka",
|
||||
"mealPlanWeekCurrent": "Denna vecka",
|
||||
"mealPlanDayNoRecipe": "Inget planerat",
|
||||
"mealPlanSelectRecipe": "Välj recept",
|
||||
"mealPlanViewRecipe": "Visa recept",
|
||||
"mealPlanServingsLabel": "Portioner",
|
||||
"mealPlanResetServings": "Återställ",
|
||||
"mealPlanSaving": "Sparar...",
|
||||
"mealPlanPlannedRecipes": "{count, plural, one {# recept planerat} other {# recept planerade}}",
|
||||
"@mealPlanPlannedRecipes": {
|
||||
"placeholders": {
|
||||
"count": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mealPlanShoppingTitle": "Inköpslista",
|
||||
"mealPlanPickRecipeHint": "Välj recept ovan för att se en samlad ingredienslista.",
|
||||
"mealPlanNoShoppingItems": "Inga ingredienser att visa för den här veckan.",
|
||||
"mealPlanNoRecipesTitle": "Det finns inga recept att planera ännu.",
|
||||
"mealPlanNoRecipesDescription": "Skapa minst ett recept först, så kan du lägga det i matsedeln.",
|
||||
"mealPlanMissingCount": "{count, plural, one {# saknas} other {# saknas}}",
|
||||
"@mealPlanMissingCount": {
|
||||
"placeholders": {
|
||||
"count": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mealPlanPartialCount": "{count, plural, one {# delvis hemma} other {# delvis hemma}}",
|
||||
"@mealPlanPartialCount": {
|
||||
"placeholders": {
|
||||
"count": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mealPlanEnoughCount": "{count, plural, one {# hemma} other {# hemma}}",
|
||||
"@mealPlanEnoughCount": {
|
||||
"placeholders": {
|
||||
"count": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mealPlanPantryCount": "{count, plural, one {# baslager} other {# baslager}}",
|
||||
"@mealPlanPantryCount": {
|
||||
"placeholders": {
|
||||
"count": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mealPlanAllAtHome": "Du har allt hemma.",
|
||||
"mealPlanStatusMissing": "Saknas",
|
||||
"mealPlanStatusPartial": "Delvis hemma",
|
||||
"mealPlanStatusEnough": "Finns hemma",
|
||||
"mealPlanStatusPantry": "Baslager",
|
||||
"loginTitle": "Logga in",
|
||||
"usernameLabel": "Användarnamn",
|
||||
"usernameRequired": "Ange ditt användarnamn.",
|
||||
|
||||
Reference in New Issue
Block a user