Inserts a new PlanProductsSheet as step 1 of the planning flow. Users see their current products as a multi-select checklist (all selected by default) before choosing the planning mode and dates. - Empty state explains the benefit and offers "Add products" CTA while always allowing "Plan without products" to skip - Selected product IDs flow through PlanMenuSheet → PlanDatePickerSheet → MenuService.generateForDates → backend - Backend: added ProductIDs field to generate-menu request body; uses ListForPromptByIDs when set, ListForPrompt otherwise - Backend: added Repository.ListForPromptByIDs (filtered SQL query) - All 12 ARB locale files updated with planProducts* keys Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
458 lines
9.4 KiB
Dart
458 lines
9.4 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 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';
|
|
}
|