Files
food-ai/client/lib/l10n/app_localizations_it.dart
dbastrikin 5096df2102 fix: fix menu generation errors and show planned meals on home screen
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>
2026-03-22 00:35:11 +02:00

378 lines
7.5 KiB
Dart

// ignore: unused_import
import 'package:intl/intl.dart' as intl;
import 'app_localizations.dart';
// ignore_for_file: type=lint
/// The translations for Italian (`it`).
class AppLocalizationsIt extends AppLocalizations {
AppLocalizationsIt([String locale = 'it']) : super(locale);
@override
String get appTitle => 'FoodAI';
@override
String get greetingMorning => 'Buongiorno';
@override
String get greetingAfternoon => 'Buon pomeriggio';
@override
String get greetingEvening => 'Buonasera';
@override
String get caloriesUnit => 'kcal';
@override
String get gramsUnit => 'g';
@override
String get goalLabel => 'obiettivo:';
@override
String get consumed => 'Consumato';
@override
String get remaining => 'Rimanente';
@override
String get exceeded => 'Superato';
@override
String get proteinLabel => 'Proteine';
@override
String get fatLabel => 'Grassi';
@override
String get carbsLabel => 'Carboidrati';
@override
String get today => 'Oggi';
@override
String get yesterday => 'Ieri';
@override
String get mealsSection => 'Pasti';
@override
String get addDish => 'Aggiungi piatto';
@override
String get scanDish => 'Scansiona';
@override
String get menu => 'Menu';
@override
String get dishHistory => 'Cronologia piatti';
@override
String get recommendCook => 'Consigliamo di cucinare';
@override
String get camera => 'Fotocamera';
@override
String get gallery => 'Galleria';
@override
String get analyzingPhoto => 'Analisi foto in corso...';
@override
String get inQueue => 'Sei in coda';
@override
String queuePosition(int position) {
return 'Posizione $position';
}
@override
String get processing => 'Elaborazione...';
@override
String get upgradePrompt => 'Salta la coda? Aggiorna →';
@override
String get recognitionFailed => 'Riconoscimento fallito. Riprova.';
@override
String get dishRecognition => 'Riconoscimento piatti';
@override
String get all => 'Tutti';
@override
String get dishRecognized => 'Piatto riconosciuto';
@override
String get recognizing => 'Riconoscimento in corso…';
@override
String get recognitionError => 'Errore di riconoscimento';
@override
String get dishResultTitle => 'Piatto riconosciuto';
@override
String get selectDish => 'Seleziona un piatto';
@override
String get dishNotRecognized => 'Piatto non riconosciuto';
@override
String get tryAgain => 'Riprova';
@override
String get nutritionApproximate =>
'I valori nutrizionali sono approssimativi — stimati dalla foto.';
@override
String get portion => 'Porzione';
@override
String get mealType => 'Tipo di pasto';
@override
String get dateLabel => 'Data';
@override
String get addToJournal => 'Aggiungi al diario';
@override
String get addFailed => 'Aggiunta fallita. Riprova.';
@override
String get historyTitle => 'Cronologia riconoscimenti';
@override
String get historyLoadError => 'Impossibile caricare la cronologia';
@override
String get retry => 'Riprova';
@override
String get noHistory => 'Nessun riconoscimento ancora';
@override
String get profileTitle => 'Profilo';
@override
String get edit => 'Modifica';
@override
String get bodyParams => 'PARAMETRI CORPOREI';
@override
String get goalActivity => 'OBIETTIVO & ATTIVITÀ';
@override
String get nutrition => 'NUTRIZIONE';
@override
String get settings => 'IMPOSTAZIONI';
@override
String get height => 'Altezza';
@override
String get weight => 'Peso';
@override
String get age => 'Età';
@override
String get gender => 'Sesso';
@override
String get genderMale => 'Maschio';
@override
String get genderFemale => 'Femmina';
@override
String get goalLoss => 'Perdita di peso';
@override
String get goalMaintain => 'Mantenimento';
@override
String get goalGain => 'Aumento muscolare';
@override
String get activityLow => 'Bassa';
@override
String get activityMedium => 'Media';
@override
String get activityHigh => 'Alta';
@override
String get calorieGoal => 'Obiettivo calorico';
@override
String get mealTypes => 'Tipi di pasto';
@override
String get formulaNote => 'Calcolato con la formula di Mifflin-St Jeor';
@override
String get language => 'Lingua';
@override
String get notSet => 'Non impostato';
@override
String get calorieHint =>
'Inserisci i parametri corporei per calcolare l\'obiettivo calorico';
@override
String get logout => 'Disconnetti';
@override
String get editProfile => 'Modifica profilo';
@override
String get cancel => 'Annulla';
@override
String get save => 'Salva';
@override
String get nameLabel => 'Nome';
@override
String get heightCm => 'Altezza (cm)';
@override
String get weightKg => 'Peso (kg)';
@override
String get birthDate => 'Data di nascita';
@override
String get nameRequired => 'Inserisci il nome';
@override
String get profileUpdated => 'Profilo aggiornato';
@override
String get profileSaveFailed => 'Salvataggio fallito';
@override
String get mealTypeBreakfast => 'Colazione';
@override
String get mealTypeSecondBreakfast => 'Seconda colazione';
@override
String get mealTypeLunch => 'Pranzo';
@override
String get mealTypeAfternoonSnack => 'Merenda';
@override
String get mealTypeDinner => 'Cena';
@override
String get mealTypeSnack => 'Spuntino';
@override
String get navHome => 'Home';
@override
String get navProducts => 'Prodotti';
@override
String get navRecipes => 'Ricette';
@override
String get addFromReceiptOrPhoto => 'Aggiungi da scontrino o foto';
@override
String get chooseMethod => 'Scegli il metodo';
@override
String get photoReceipt => 'Fotografa scontrino';
@override
String get photoReceiptSubtitle =>
'Riconosciamo tutti i prodotti dallo scontrino';
@override
String get photoProducts => 'Fotografa i prodotti';
@override
String get photoProductsSubtitle => 'Frigo, tavolo, scaffale — fino a 3 foto';
@override
String get addPackagedFood => 'Aggiungi alimento confezionato';
@override
String get scanBarcode => 'Scansiona codice a barre';
@override
String get portionWeightG => 'Peso della porzione (g)';
@override
String get productNotFound => 'Prodotto non trovato';
@override
String get enterManually => 'Inserisci manualmente';
@override
String get perHundredG => 'per 100 g';
@override
String get searchFoodHint => 'Cerca prodotti e piatti...';
@override
String get recentlyUsedLabel => 'Usati di recente';
@override
String get productsSection => 'Prodotti';
@override
String get dishesSection => 'Piatti';
@override
String noResultsForQuery(String query) {
return 'Nessun risultato per \"$query\"';
}
@override
String get servingsLabel => 'Porzioni';
@override
String get addToDiary => 'Aggiungi al diario';
@override
String get scanDishPhoto => 'Scansiona foto';
@override
String planningForDate(String date) {
return '';
}
@override
String get markAsEaten => 'Segna come mangiato';
@override
String get plannedMealLabel => 'Pianificato';
@override
String get generateWeekLabel => 'Pianifica la settimana';
@override
String get generateWeekSubtitle =>
'L\'AI creerà un menu con colazione, pranzo e cena per tutta la settimana';
@override
String get generatingMenu => 'Generazione menu...';
@override
String get weekPlannedLabel => 'Settimana pianificata';
}