- Rewrite receipt OCR prompt: completes truncated names, preserves fat% and flavour attributes, extracts weight/volume from line, infers typical package sizes for solid goods with quantity_confidence field - Add quantity_confidence to RecognizedItem, EnrichedItem, and ProductJobResultItem; propagate through item enricher and worker - Replace per-item create loop with single POST /user-products/batch call from RecognitionConfirmScreen - Rebuild RecognitionConfirmScreen: amber qty border for low quantity_confidence, tappable product name → catalog picker, sort items by confidence, full L10n (no hardcoded strings) - Add timestamps (HH:mm / d MMM HH:mm) to recent scan chips - Show close-app hint on ProductJobWatchScreen (queued + processing) - Refresh recentProductJobsProvider on watch screen init so new job appears without a manual pull-to-refresh - App-level WidgetsBindingObserver refreshes product and dish job lists on resume, fixing stale lists after background/foreground transitions - Add 9 new L10n keys across all 12 locales Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
584 lines
12 KiB
Dart
584 lines
12 KiB
Dart
// ignore: unused_import
|
|
import 'package:intl/intl.dart' as intl;
|
|
import 'app_localizations.dart';
|
|
|
|
// ignore_for_file: type=lint
|
|
|
|
/// The translations for Spanish Castilian (`es`).
|
|
class AppLocalizationsEs extends AppLocalizations {
|
|
AppLocalizationsEs([String locale = 'es']) : super(locale);
|
|
|
|
@override
|
|
String get appTitle => 'FoodAI';
|
|
|
|
@override
|
|
String get greetingMorning => 'Buenos días';
|
|
|
|
@override
|
|
String get greetingAfternoon => 'Buenas tardes';
|
|
|
|
@override
|
|
String get greetingEvening => 'Buenas noches';
|
|
|
|
@override
|
|
String get caloriesUnit => 'kcal';
|
|
|
|
@override
|
|
String get gramsUnit => 'g';
|
|
|
|
@override
|
|
String get goalLabel => 'meta:';
|
|
|
|
@override
|
|
String get consumed => 'Consumido';
|
|
|
|
@override
|
|
String get remaining => 'Restante';
|
|
|
|
@override
|
|
String get exceeded => 'Excedido';
|
|
|
|
@override
|
|
String get proteinLabel => 'Proteínas';
|
|
|
|
@override
|
|
String get fatLabel => 'Grasas';
|
|
|
|
@override
|
|
String get carbsLabel => 'Carbohidratos';
|
|
|
|
@override
|
|
String get today => 'Hoy';
|
|
|
|
@override
|
|
String get yesterday => 'Ayer';
|
|
|
|
@override
|
|
String get mealsSection => 'Comidas';
|
|
|
|
@override
|
|
String get addDish => 'Añadir plato';
|
|
|
|
@override
|
|
String get scanDish => 'Escanear';
|
|
|
|
@override
|
|
String get menu => 'Menú';
|
|
|
|
@override
|
|
String get dishHistory => 'Historial de platos';
|
|
|
|
@override
|
|
String get recommendCook => 'Recomendamos cocinar';
|
|
|
|
@override
|
|
String get camera => 'Cámara';
|
|
|
|
@override
|
|
String get gallery => 'Galería';
|
|
|
|
@override
|
|
String get analyzingPhoto => 'Analizando foto...';
|
|
|
|
@override
|
|
String get inQueue => 'Estás en la cola';
|
|
|
|
@override
|
|
String queuePosition(int position) {
|
|
return 'Posición $position';
|
|
}
|
|
|
|
@override
|
|
String get processing => 'Procesando...';
|
|
|
|
@override
|
|
String get upgradePrompt => '¿Saltar la cola? Actualiza →';
|
|
|
|
@override
|
|
String get recognitionFailed => 'Reconocimiento fallido. Inténtalo de nuevo.';
|
|
|
|
@override
|
|
String get dishRecognition => 'Reconocimiento de platos';
|
|
|
|
@override
|
|
String get all => 'Todos';
|
|
|
|
@override
|
|
String get dishRecognized => 'Plato reconocido';
|
|
|
|
@override
|
|
String get recognizing => 'Reconociendo…';
|
|
|
|
@override
|
|
String get recognitionError => 'Error de reconocimiento';
|
|
|
|
@override
|
|
String get dishResultTitle => 'Plato reconocido';
|
|
|
|
@override
|
|
String get selectDish => 'Selecciona un plato';
|
|
|
|
@override
|
|
String get dishNotRecognized => 'Plato no reconocido';
|
|
|
|
@override
|
|
String get tryAgain => 'Intentar de nuevo';
|
|
|
|
@override
|
|
String get nutritionApproximate =>
|
|
'Los valores nutricionales son aproximados — estimados a partir de la foto.';
|
|
|
|
@override
|
|
String get portion => 'Porción';
|
|
|
|
@override
|
|
String get mealType => 'Tipo de comida';
|
|
|
|
@override
|
|
String get dateLabel => 'Fecha';
|
|
|
|
@override
|
|
String get addToJournal => 'Añadir al diario';
|
|
|
|
@override
|
|
String get addFailed => 'Error al añadir. Inténtalo de nuevo.';
|
|
|
|
@override
|
|
String get historyTitle => 'Historial de reconocimientos';
|
|
|
|
@override
|
|
String get historyLoadError => 'Error al cargar el historial';
|
|
|
|
@override
|
|
String get retry => 'Reintentar';
|
|
|
|
@override
|
|
String get noHistory => 'Sin reconocimientos aún';
|
|
|
|
@override
|
|
String get profileTitle => 'Perfil';
|
|
|
|
@override
|
|
String get edit => 'Editar';
|
|
|
|
@override
|
|
String get bodyParams => 'PARÁMETROS CORPORALES';
|
|
|
|
@override
|
|
String get goalActivity => 'OBJETIVO Y ACTIVIDAD';
|
|
|
|
@override
|
|
String get nutrition => 'NUTRICIÓN';
|
|
|
|
@override
|
|
String get settings => 'AJUSTES';
|
|
|
|
@override
|
|
String get height => 'Altura';
|
|
|
|
@override
|
|
String get weight => 'Peso';
|
|
|
|
@override
|
|
String get age => 'Edad';
|
|
|
|
@override
|
|
String get gender => 'Género';
|
|
|
|
@override
|
|
String get genderMale => 'Masculino';
|
|
|
|
@override
|
|
String get genderFemale => 'Femenino';
|
|
|
|
@override
|
|
String get goalLoss => 'Pérdida de peso';
|
|
|
|
@override
|
|
String get goalMaintain => 'Mantenimiento';
|
|
|
|
@override
|
|
String get goalGain => 'Ganancia muscular';
|
|
|
|
@override
|
|
String get activityLow => 'Baja';
|
|
|
|
@override
|
|
String get activityMedium => 'Media';
|
|
|
|
@override
|
|
String get activityHigh => 'Alta';
|
|
|
|
@override
|
|
String get calorieGoal => 'Objetivo calórico';
|
|
|
|
@override
|
|
String get mealTypes => 'Tipos de comida';
|
|
|
|
@override
|
|
String get formulaNote => 'Calculado con la fórmula de Mifflin-St Jeor';
|
|
|
|
@override
|
|
String get language => 'Idioma';
|
|
|
|
@override
|
|
String get notSet => 'No establecido';
|
|
|
|
@override
|
|
String get calorieHint =>
|
|
'Introduce los parámetros corporales para calcular el objetivo calórico';
|
|
|
|
@override
|
|
String get logout => 'Cerrar sesión';
|
|
|
|
@override
|
|
String get editProfile => 'Editar perfil';
|
|
|
|
@override
|
|
String get cancel => 'Cancelar';
|
|
|
|
@override
|
|
String get save => 'Guardar';
|
|
|
|
@override
|
|
String get nameLabel => 'Nombre';
|
|
|
|
@override
|
|
String get heightCm => 'Altura (cm)';
|
|
|
|
@override
|
|
String get weightKg => 'Peso (kg)';
|
|
|
|
@override
|
|
String get birthDate => 'Fecha de nacimiento';
|
|
|
|
@override
|
|
String get nameRequired => 'Introduce el nombre';
|
|
|
|
@override
|
|
String get profileUpdated => 'Perfil actualizado';
|
|
|
|
@override
|
|
String get profileSaveFailed => 'Error al guardar';
|
|
|
|
@override
|
|
String get mealTypeBreakfast => 'Desayuno';
|
|
|
|
@override
|
|
String get mealTypeSecondBreakfast => 'Segundo desayuno';
|
|
|
|
@override
|
|
String get mealTypeLunch => 'Almuerzo';
|
|
|
|
@override
|
|
String get mealTypeAfternoonSnack => 'Merienda';
|
|
|
|
@override
|
|
String get mealTypeDinner => 'Cena';
|
|
|
|
@override
|
|
String get mealTypeSnack => 'Aperitivo';
|
|
|
|
@override
|
|
String get navHome => 'Inicio';
|
|
|
|
@override
|
|
String get navProducts => 'Productos';
|
|
|
|
@override
|
|
String get navRecipes => 'Recetas';
|
|
|
|
@override
|
|
String get addFromReceiptOrPhoto => 'Añadir desde recibo o foto';
|
|
|
|
@override
|
|
String get scanScreenTitle => 'Escanear y Reconocer';
|
|
|
|
@override
|
|
String get barcodeScanSubtitle =>
|
|
'Encontrar un producto por su código de barras';
|
|
|
|
@override
|
|
String get chooseMethod => 'Elegir método';
|
|
|
|
@override
|
|
String get photoReceipt => 'Fotografiar recibo';
|
|
|
|
@override
|
|
String get photoReceiptSubtitle =>
|
|
'Reconocemos todos los productos del recibo';
|
|
|
|
@override
|
|
String get photoProducts => 'Fotografiar productos';
|
|
|
|
@override
|
|
String get photoProductsSubtitle => 'Nevera, mesa, estante — hasta 3 fotos';
|
|
|
|
@override
|
|
String get addPackagedFood => 'Agregar alimento envasado';
|
|
|
|
@override
|
|
String get scanBarcode => 'Escanear código de barras';
|
|
|
|
@override
|
|
String get portionWeightG => 'Peso de la porción (g)';
|
|
|
|
@override
|
|
String get productNotFound => 'Producto no encontrado';
|
|
|
|
@override
|
|
String get enterManually => 'Ingresar manualmente';
|
|
|
|
@override
|
|
String get perHundredG => 'por 100 g';
|
|
|
|
@override
|
|
String get searchFoodHint => 'Buscar productos y platos...';
|
|
|
|
@override
|
|
String get recentlyUsedLabel => 'Usados recientemente';
|
|
|
|
@override
|
|
String get productsSection => 'Productos';
|
|
|
|
@override
|
|
String get dishesSection => 'Platos';
|
|
|
|
@override
|
|
String noResultsForQuery(String query) {
|
|
return 'Nada encontrado para \"$query\"';
|
|
}
|
|
|
|
@override
|
|
String get servingsLabel => 'Porciones';
|
|
|
|
@override
|
|
String get addToDiary => 'Añadir al diario';
|
|
|
|
@override
|
|
String get scanDishPhoto => 'Escanear foto';
|
|
|
|
@override
|
|
String planningForDate(String date) {
|
|
return '';
|
|
}
|
|
|
|
@override
|
|
String get markAsEaten => 'Marcar como comido';
|
|
|
|
@override
|
|
String get plannedMealLabel => 'Planificado';
|
|
|
|
@override
|
|
String get generateWeekLabel => 'Planificar la semana';
|
|
|
|
@override
|
|
String get generateWeekSubtitle =>
|
|
'La IA creará un menú con desayuno, comida y cena para toda la semana';
|
|
|
|
@override
|
|
String get generatingMenu => 'Generando menú...';
|
|
|
|
@override
|
|
String get dayPlannedLabel => 'Día planificado';
|
|
|
|
@override
|
|
String get planMenuButton => 'Planificar comidas';
|
|
|
|
@override
|
|
String get planMenuTitle => '¿Qué planificar?';
|
|
|
|
@override
|
|
String get planOptionSingleMeal => 'Una comida';
|
|
|
|
@override
|
|
String get planOptionSingleMealDesc => 'Elegir día y tipo de comida';
|
|
|
|
@override
|
|
String get planOptionDay => 'Un día';
|
|
|
|
@override
|
|
String get planOptionDayDesc => 'Todas las comidas de un día';
|
|
|
|
@override
|
|
String get planOptionDays => 'Varios días';
|
|
|
|
@override
|
|
String get planOptionDaysDesc => 'Personalizar período';
|
|
|
|
@override
|
|
String get planOptionWeek => 'Una semana';
|
|
|
|
@override
|
|
String get planOptionWeekDesc => '7 días de una vez';
|
|
|
|
@override
|
|
String get planSelectDate => 'Seleccionar fecha';
|
|
|
|
@override
|
|
String get planSelectMealType => 'Tipo de comida';
|
|
|
|
@override
|
|
String get planSelectRange => 'Seleccionar período';
|
|
|
|
@override
|
|
String get planGenerateButton => 'Planificar';
|
|
|
|
@override
|
|
String get planGenerating => 'Generando plan…';
|
|
|
|
@override
|
|
String get planSuccess => '¡Menú planificado!';
|
|
|
|
@override
|
|
String get planProductsTitle => 'Productos para el menú';
|
|
|
|
@override
|
|
String get planProductsSubtitle =>
|
|
'La IA tendrá en cuenta los productos seleccionados al generar recetas';
|
|
|
|
@override
|
|
String get planProductsEmpty => 'No hay productos añadidos';
|
|
|
|
@override
|
|
String get planProductsEmptyMessage =>
|
|
'Añade productos que tengas en casa — la IA sugerirá recetas con lo que ya tienes';
|
|
|
|
@override
|
|
String get planProductsAddProducts => 'Añadir productos';
|
|
|
|
@override
|
|
String get planProductsContinue => 'Continuar';
|
|
|
|
@override
|
|
String get planProductsSkip => 'Omitir selección de productos';
|
|
|
|
@override
|
|
String get planProductsSkipNoProducts => 'Planificar sin productos';
|
|
|
|
@override
|
|
String get planProductsSelectAll => 'Seleccionar todo';
|
|
|
|
@override
|
|
String get planProductsDeselectAll => 'Deseleccionar todo';
|
|
|
|
@override
|
|
String get recentScans => 'Escaneos recientes';
|
|
|
|
@override
|
|
String get seeAllScans => 'Ver todos';
|
|
|
|
@override
|
|
String get productJobHistoryTitle => 'Historial de escaneos';
|
|
|
|
@override
|
|
String get jobTypeReceipt => 'Ticket';
|
|
|
|
@override
|
|
String get jobTypeProducts => 'Productos';
|
|
|
|
@override
|
|
String get scanSubmitting => 'Enviando...';
|
|
|
|
@override
|
|
String get processingProducts => 'Procesando...';
|
|
|
|
@override
|
|
String get clearAllProducts => 'Borrar todo';
|
|
|
|
@override
|
|
String get clearAllConfirmTitle => '¿Borrar todos los productos?';
|
|
|
|
@override
|
|
String get clearAllConfirmMessage =>
|
|
'Todos los productos serán eliminados permanentemente.';
|
|
|
|
@override
|
|
String get addManually => 'Manual';
|
|
|
|
@override
|
|
String get scan => 'Escanear';
|
|
|
|
@override
|
|
String get addProduct => 'Agregar';
|
|
|
|
@override
|
|
String get searchProducts => 'Buscar productos';
|
|
|
|
@override
|
|
String get searchProductsHint =>
|
|
'Escribe el nombre del producto o agrega manualmente';
|
|
|
|
@override
|
|
String noSearchResults(String query) {
|
|
return 'Sin resultados para \"$query\"';
|
|
}
|
|
|
|
@override
|
|
String get quantity => 'Cantidad';
|
|
|
|
@override
|
|
String get storageDays => 'Días de almacenamiento';
|
|
|
|
@override
|
|
String get addToShelf => 'Agregar a despensa';
|
|
|
|
@override
|
|
String get errorGeneric => 'Algo salió mal';
|
|
|
|
@override
|
|
String get nutritionOptional => 'Nutrición por 100g (opcional)';
|
|
|
|
@override
|
|
String get calories => 'Calorías';
|
|
|
|
@override
|
|
String get protein => 'Proteína';
|
|
|
|
@override
|
|
String get fat => 'Grasas';
|
|
|
|
@override
|
|
String get carbs => 'Carbohidratos';
|
|
|
|
@override
|
|
String get fiber => 'Fibra';
|
|
|
|
@override
|
|
String get productAddedToShelf => 'Agregado a la despensa';
|
|
|
|
@override
|
|
String recognitionFoundProducts(int count) {
|
|
return 'Se encontraron $count productos';
|
|
}
|
|
|
|
@override
|
|
String get recognitionAddAll => 'Agregar todo';
|
|
|
|
@override
|
|
String get recognitionAddToStock => 'Agregar al almacén';
|
|
|
|
@override
|
|
String recognitionAdded(int count) {
|
|
return 'Se agregaron $count productos';
|
|
}
|
|
|
|
@override
|
|
String get recognitionProductsFailed => 'Error al agregar productos';
|
|
|
|
@override
|
|
String get recognitionEmpty => 'No se encontraron productos';
|
|
|
|
@override
|
|
String recognitionConfidence(int percent) {
|
|
return '$percent% de confianza';
|
|
}
|
|
|
|
@override
|
|
String get recognitionReplaceProduct => 'Reemplazar producto';
|
|
|
|
@override
|
|
String get scanJobCloseHint =>
|
|
'Puedes cerrar la app — este escaneo aparecerá en Escaneos recientes en la pantalla de Productos';
|
|
}
|