Files
food-ai/client/lib/l10n/app_localizations_it.dart
dbastrikin b2bdcbae6f feat: barcode scanning for shelf add + scan screen barcode option
- Add ShelfBarcodeScanScreen: scans barcode via mobile_scanner, looks up
  product via GET /products/barcode/{barcode} (Open Food Facts fallback),
  returns CatalogProduct to caller; loading overlay while looking up;
  "Add manually" fallback in AppBar for unknown products
- Extract AddToShelfSheet to add_to_shelf_sheet.dart (was private in
  product_search_screen.dart) so both search and scan screens can reuse it
- Add barcode icon button to ProductSearchScreen AppBar → opens scanner
- Add "Scan barcode" card (📷) to ScanScreen alongside receipt and photo modes
- Rename ScanScreen title: addFromReceiptOrPhoto → scanScreenTitle
  ("Сканировать" / "Scan & Recognize") to reflect all three modes
- Add 2 L10n keys (scanScreenTitle, barcodeScanSubtitle) across all 12 locales

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-26 15:21:56 +02:00

550 lines
11 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 scanScreenTitle => 'Scansiona & Riconosci';
@override
String get barcodeScanSubtitle =>
'Trova un prodotto tramite il codice a barre';
@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 dayPlannedLabel => 'Giorno pianificato';
@override
String get planMenuButton => 'Pianifica i pasti';
@override
String get planMenuTitle => 'Cosa pianificare?';
@override
String get planOptionSingleMeal => 'Un pasto';
@override
String get planOptionSingleMealDesc => 'Scegli giorno e tipo di pasto';
@override
String get planOptionDay => 'Un giorno';
@override
String get planOptionDayDesc => 'Tutti i pasti di un giorno';
@override
String get planOptionDays => 'Più giorni';
@override
String get planOptionDaysDesc => 'Personalizza il periodo';
@override
String get planOptionWeek => 'Una settimana';
@override
String get planOptionWeekDesc => '7 giorni in una volta';
@override
String get planSelectDate => 'Seleziona data';
@override
String get planSelectMealType => 'Tipo di pasto';
@override
String get planSelectRange => 'Seleziona periodo';
@override
String get planGenerateButton => 'Pianifica';
@override
String get planGenerating => 'Generazione piano…';
@override
String get planSuccess => 'Menu pianificato!';
@override
String get planProductsTitle => 'Prodotti per il menu';
@override
String get planProductsSubtitle =>
'L\'AI terrà conto dei prodotti selezionati nella generazione delle ricette';
@override
String get planProductsEmpty => 'Nessun prodotto aggiunto';
@override
String get planProductsEmptyMessage =>
'Aggiungi prodotti che hai in casa — l\'AI suggerirà ricette con quello che hai già';
@override
String get planProductsAddProducts => 'Aggiungi prodotti';
@override
String get planProductsContinue => 'Continua';
@override
String get planProductsSkip => 'Salta la selezione dei prodotti';
@override
String get planProductsSkipNoProducts => 'Pianifica senza prodotti';
@override
String get planProductsSelectAll => 'Seleziona tutto';
@override
String get planProductsDeselectAll => 'Deseleziona tutto';
@override
String get recentScans => 'Scansioni recenti';
@override
String get seeAllScans => 'Vedi tutto';
@override
String get productJobHistoryTitle => 'Cronologia scansioni';
@override
String get jobTypeReceipt => 'Scontrino';
@override
String get jobTypeProducts => 'Prodotti';
@override
String get scanSubmitting => 'Invio...';
@override
String get processingProducts => 'Elaborazione...';
@override
String get clearAllProducts => 'Cancella tutto';
@override
String get clearAllConfirmTitle => 'Cancellare tutti i prodotti?';
@override
String get clearAllConfirmMessage =>
'Tutti i prodotti verranno eliminati definitivamente.';
@override
String get addManually => 'Manualmente';
@override
String get scan => 'Scansiona';
@override
String get addProduct => 'Aggiungi';
@override
String get searchProducts => 'Cerca prodotti';
@override
String get searchProductsHint =>
'Digita il nome del prodotto o aggiungi manualmente';
@override
String noSearchResults(String query) {
return 'Nessun risultato per \"$query\"';
}
@override
String get quantity => 'Quantità';
@override
String get storageDays => 'Giorni di conservazione';
@override
String get addToShelf => 'Aggiungi alla dispensa';
@override
String get errorGeneric => 'Qualcosa è andato storto';
@override
String get nutritionOptional => 'Valori nutrizionali per 100g (opzionale)';
@override
String get calories => 'Calorie';
@override
String get protein => 'Proteine';
@override
String get fat => 'Grassi';
@override
String get carbs => 'Carboidrati';
@override
String get fiber => 'Fibre';
@override
String get productAddedToShelf => 'Aggiunto alla dispensa';
}