Files
food-ai/client/lib/l10n/app_localizations_pt.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 Portuguese (`pt`).
class AppLocalizationsPt extends AppLocalizations {
AppLocalizationsPt([String locale = 'pt']) : super(locale);
@override
String get appTitle => 'FoodAI';
@override
String get greetingMorning => 'Bom dia';
@override
String get greetingAfternoon => 'Boa tarde';
@override
String get greetingEvening => 'Boa noite';
@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 => 'Gorduras';
@override
String get carbsLabel => 'Carboidratos';
@override
String get today => 'Hoje';
@override
String get yesterday => 'Ontem';
@override
String get mealsSection => 'Refeições';
@override
String get addDish => 'Adicionar prato';
@override
String get scanDish => 'Escanear';
@override
String get menu => 'Menu';
@override
String get dishHistory => 'Histórico de pratos';
@override
String get recommendCook => 'Recomendamos cozinhar';
@override
String get camera => 'Câmera';
@override
String get gallery => 'Galeria';
@override
String get analyzingPhoto => 'Analisando foto...';
@override
String get inQueue => 'Você está na fila';
@override
String queuePosition(int position) {
return 'Posição $position';
}
@override
String get processing => 'Processando...';
@override
String get upgradePrompt => 'Pular a fila? Faça upgrade →';
@override
String get recognitionFailed => 'Reconhecimento falhou. Tente novamente.';
@override
String get dishRecognition => 'Reconhecimento de pratos';
@override
String get all => 'Todos';
@override
String get dishRecognized => 'Prato reconhecido';
@override
String get recognizing => 'Reconhecendo…';
@override
String get recognitionError => 'Erro de reconhecimento';
@override
String get dishResultTitle => 'Prato reconhecido';
@override
String get selectDish => 'Selecionar prato';
@override
String get dishNotRecognized => 'Prato não reconhecido';
@override
String get tryAgain => 'Tentar novamente';
@override
String get nutritionApproximate =>
'Os valores nutricionais são aproximados — estimados pela foto.';
@override
String get portion => 'Porção';
@override
String get mealType => 'Tipo de refeição';
@override
String get dateLabel => 'Data';
@override
String get addToJournal => 'Adicionar ao diário';
@override
String get addFailed => 'Falha ao adicionar. Tente novamente.';
@override
String get historyTitle => 'Histórico de reconhecimentos';
@override
String get historyLoadError => 'Falha ao carregar o histórico';
@override
String get retry => 'Tentar novamente';
@override
String get noHistory => 'Nenhum reconhecimento ainda';
@override
String get profileTitle => 'Perfil';
@override
String get edit => 'Editar';
@override
String get bodyParams => 'PARÂMETROS CORPORAIS';
@override
String get goalActivity => 'OBJETIVO & ATIVIDADE';
@override
String get nutrition => 'NUTRIÇÃO';
@override
String get settings => 'CONFIGURAÇÕES';
@override
String get height => 'Altura';
@override
String get weight => 'Peso';
@override
String get age => 'Idade';
@override
String get gender => 'Gênero';
@override
String get genderMale => 'Masculino';
@override
String get genderFemale => 'Feminino';
@override
String get goalLoss => 'Perda de peso';
@override
String get goalMaintain => 'Manutenção';
@override
String get goalGain => 'Ganho muscular';
@override
String get activityLow => 'Baixa';
@override
String get activityMedium => 'Média';
@override
String get activityHigh => 'Alta';
@override
String get calorieGoal => 'Meta calórica';
@override
String get mealTypes => 'Tipos de refeição';
@override
String get formulaNote => 'Calculado com a fórmula de Mifflin-St Jeor';
@override
String get language => 'Idioma';
@override
String get notSet => 'Não definido';
@override
String get calorieHint =>
'Insira os parâmetros corporais para calcular a meta calórica';
@override
String get logout => 'Sair';
@override
String get editProfile => 'Editar perfil';
@override
String get cancel => 'Cancelar';
@override
String get save => 'Salvar';
@override
String get nameLabel => 'Nome';
@override
String get heightCm => 'Altura (cm)';
@override
String get weightKg => 'Peso (kg)';
@override
String get birthDate => 'Data de nascimento';
@override
String get nameRequired => 'Insira o nome';
@override
String get profileUpdated => 'Perfil atualizado';
@override
String get profileSaveFailed => 'Falha ao salvar';
@override
String get mealTypeBreakfast => 'Café da manhã';
@override
String get mealTypeSecondBreakfast => 'Segundo café da manhã';
@override
String get mealTypeLunch => 'Almoço';
@override
String get mealTypeAfternoonSnack => 'Lanche da tarde';
@override
String get mealTypeDinner => 'Jantar';
@override
String get mealTypeSnack => 'Petisco';
@override
String get navHome => 'Início';
@override
String get navProducts => 'Produtos';
@override
String get navRecipes => 'Receitas';
@override
String get addFromReceiptOrPhoto => 'Adicionar de recibo ou foto';
@override
String get chooseMethod => 'Escolher método';
@override
String get photoReceipt => 'Fotografar recibo';
@override
String get photoReceiptSubtitle => 'Reconhecemos todos os produtos do recibo';
@override
String get photoProducts => 'Fotografar produtos';
@override
String get photoProductsSubtitle =>
'Geladeira, mesa, prateleira — até 3 fotos';
@override
String get addPackagedFood => 'Adicionar alimento embalado';
@override
String get scanBarcode => 'Escanear código de barras';
@override
String get portionWeightG => 'Peso da porção (g)';
@override
String get productNotFound => 'Produto não encontrado';
@override
String get enterManually => 'Inserir manualmente';
@override
String get perHundredG => 'por 100 g';
@override
String get searchFoodHint => 'Pesquisar produtos e pratos...';
@override
String get recentlyUsedLabel => 'Usados recentemente';
@override
String get productsSection => 'Produtos';
@override
String get dishesSection => 'Pratos';
@override
String noResultsForQuery(String query) {
return 'Nada encontrado para \"$query\"';
}
@override
String get servingsLabel => 'Porções';
@override
String get addToDiary => 'Adicionar ao diário';
@override
String get scanDishPhoto => 'Escanear foto';
@override
String planningForDate(String date) {
return '';
}
@override
String get markAsEaten => 'Marcar como comido';
@override
String get plannedMealLabel => 'Planejado';
@override
String get generateWeekLabel => 'Planejar a semana';
@override
String get generateWeekSubtitle =>
'A IA criará um menu com café da manhã, almoço e jantar para a semana inteira';
@override
String get generatingMenu => 'Gerando menu...';
@override
String get weekPlannedLabel => 'Semana planejada';
}