Backend fixes: - migration 003: add 'menu' value to recipe_source enum (was causing SQLSTATE 22P02) - migration 004: rename recipe_products→recipe_ingredients, product_id→ingredient_id (was causing SQLSTATE 42P01) - dish/repository.go: fix INSERT INTO tags using $1/$1 for two columns → $1/$2 (was causing SQLSTATE 42P08) - home/handler.go: replace non-existent saved_recipes table with correct joins (recipes→dishes→dish_translations, user_saved_recipes) so today's plan and recommendations load correctly - reqlog: new slog.Handler wrapper that adds request_id and stack trace to ERROR-level logs - all handlers: slog.Error→slog.ErrorContext so error logs include request context; writeError includes request_id in response body Client: - home_screen.dart: extend home screen to future dates, show planned meals as ghost entries - l10n: add new localisation keys for home screen date navigation and planned meal UI Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
138 lines
4.3 KiB
Plaintext
138 lines
4.3 KiB
Plaintext
{
|
|
"@@locale": "en",
|
|
"appTitle": "FoodAI",
|
|
"greetingMorning": "Good morning",
|
|
"greetingAfternoon": "Good afternoon",
|
|
"greetingEvening": "Good evening",
|
|
"caloriesUnit": "kcal",
|
|
"gramsUnit": "g",
|
|
"goalLabel": "goal:",
|
|
"consumed": "Consumed",
|
|
"remaining": "Remaining",
|
|
"exceeded": "Exceeded",
|
|
"proteinLabel": "Protein",
|
|
"fatLabel": "Fat",
|
|
"carbsLabel": "Carbs",
|
|
"today": "Today",
|
|
"yesterday": "Yesterday",
|
|
"mealsSection": "Meals",
|
|
"addDish": "Add dish",
|
|
"scanDish": "Scan",
|
|
"menu": "Menu",
|
|
"dishHistory": "Dish history",
|
|
"recommendCook": "We recommend cooking",
|
|
"camera": "Camera",
|
|
"gallery": "Gallery",
|
|
"analyzingPhoto": "Analyzing photo...",
|
|
"inQueue": "You are in queue",
|
|
"queuePosition": "Position {position}",
|
|
"@queuePosition": {
|
|
"placeholders": {
|
|
"position": { "type": "int" }
|
|
}
|
|
},
|
|
"processing": "Processing...",
|
|
"upgradePrompt": "Skip the queue? Upgrade →",
|
|
"recognitionFailed": "Recognition failed. Try again.",
|
|
"dishRecognition": "Dish recognition",
|
|
"all": "All",
|
|
"dishRecognized": "Dish recognized",
|
|
"recognizing": "Recognizing…",
|
|
"recognitionError": "Recognition error",
|
|
"dishResultTitle": "Dish recognized",
|
|
"selectDish": "Select dish",
|
|
"dishNotRecognized": "Dish not recognized",
|
|
"tryAgain": "Try again",
|
|
"nutritionApproximate": "Nutrition is approximate — estimated from photo.",
|
|
"portion": "Portion",
|
|
"mealType": "Meal type",
|
|
"dateLabel": "Date",
|
|
"addToJournal": "Add to journal",
|
|
"addFailed": "Failed to add. Try again.",
|
|
"historyTitle": "Recognition history",
|
|
"historyLoadError": "Failed to load history",
|
|
"retry": "Retry",
|
|
"noHistory": "No recognitions yet",
|
|
"profileTitle": "Profile",
|
|
"edit": "Edit",
|
|
"bodyParams": "BODY PARAMS",
|
|
"goalActivity": "GOAL & ACTIVITY",
|
|
"nutrition": "NUTRITION",
|
|
"settings": "SETTINGS",
|
|
"height": "Height",
|
|
"weight": "Weight",
|
|
"age": "Age",
|
|
"gender": "Gender",
|
|
"genderMale": "Male",
|
|
"genderFemale": "Female",
|
|
"goalLoss": "Weight loss",
|
|
"goalMaintain": "Maintenance",
|
|
"goalGain": "Muscle gain",
|
|
"activityLow": "Low",
|
|
"activityMedium": "Medium",
|
|
"activityHigh": "High",
|
|
"calorieGoal": "Calorie goal",
|
|
"mealTypes": "Meal types",
|
|
"formulaNote": "Calculated using the Mifflin-St Jeor formula",
|
|
"language": "Language",
|
|
"notSet": "Not set",
|
|
"calorieHint": "Enter body params to calculate calorie goal",
|
|
"logout": "Log out",
|
|
"editProfile": "Edit profile",
|
|
"cancel": "Cancel",
|
|
"save": "Save",
|
|
"nameLabel": "Name",
|
|
"heightCm": "Height (cm)",
|
|
"weightKg": "Weight (kg)",
|
|
"birthDate": "Date of birth",
|
|
"nameRequired": "Enter name",
|
|
"profileUpdated": "Profile updated",
|
|
"profileSaveFailed": "Failed to save",
|
|
"mealTypeBreakfast": "Breakfast",
|
|
"mealTypeSecondBreakfast": "Second breakfast",
|
|
"mealTypeLunch": "Lunch",
|
|
"mealTypeAfternoonSnack": "Afternoon snack",
|
|
"mealTypeDinner": "Dinner",
|
|
"mealTypeSnack": "Snack",
|
|
"navHome": "Home",
|
|
"navProducts": "Products",
|
|
"navRecipes": "Recipes",
|
|
"addFromReceiptOrPhoto": "Add from receipt or photo",
|
|
"chooseMethod": "Choose method",
|
|
"photoReceipt": "Photo of receipt",
|
|
"photoReceiptSubtitle": "Recognize all items from a receipt",
|
|
"photoProducts": "Photo of products",
|
|
"photoProductsSubtitle": "Fridge, table, shelf — up to 3 photos",
|
|
"addPackagedFood": "Add packaged food",
|
|
"scanBarcode": "Scan barcode",
|
|
"portionWeightG": "Portion weight (g)",
|
|
"productNotFound": "Product not found",
|
|
"enterManually": "Enter manually",
|
|
"perHundredG": "per 100 g",
|
|
"searchFoodHint": "Search products and dishes...",
|
|
"recentlyUsedLabel": "Recently used",
|
|
"productsSection": "Products",
|
|
"dishesSection": "Dishes",
|
|
"noResultsForQuery": "Nothing found for \"{query}\"",
|
|
"@noResultsForQuery": {
|
|
"placeholders": {
|
|
"query": { "type": "String" }
|
|
}
|
|
},
|
|
"servingsLabel": "Servings",
|
|
"addToDiary": "Add to diary",
|
|
"scanDishPhoto": "Scan photo",
|
|
"planningForDate": "Planning for {date}",
|
|
"@planningForDate": {
|
|
"placeholders": {
|
|
"date": { "type": "String" }
|
|
}
|
|
},
|
|
"markAsEaten": "Mark as eaten",
|
|
"plannedMealLabel": "Planned",
|
|
"generateWeekLabel": "Plan the week",
|
|
"generateWeekSubtitle": "AI will create a menu with breakfast, lunch and dinner for the whole week",
|
|
"generatingMenu": "Generating menu...",
|
|
"weekPlannedLabel": "Week planned"
|
|
}
|