Files
food-ai/client/lib/l10n/app_localizations_es.dart
dbastrikin 205edbdade feat: rename ingredients→products, products→user_products; add barcode/OFF import
- Rename catalog: ingredient/* → product/* (canonical_name, barcode, nutrition per 100g)
- Rename pantry: product/* → userproduct/* (user-owned items with expiry)
- Squash migrations into single 001_initial_schema.sql (clean-db baseline)
- product_categories: add English canonical name column; fix COALESCE in queries
- Remove product_translations: product names are stored in their original language
- Add default_unit_name to product API responses via unit_translations JOIN
- Add cmd/importoff: bulk import from OpenFoodFacts JSONL dump (COPY + ON CONFLICT)
- Diary: support product_id entries alongside dish_id (CHECK num_nonnulls = 1)
- Home: getLoggedCalories joins both recipes and catalog products
- Flutter: rename models/providers/services to match backend rename
- Flutter: add barcode scan flow for diary (mobile_scanner, product_portion_sheet)
- Flutter: localise 6 new keys across 12 languages (barcode scan, portion weight)
- Routes: GET /products/search, GET /products/barcode/{barcode}, /user-products

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-21 12:45:48 +02:00

328 lines
6.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';
}