Files
food-ai/client/lib/l10n/app_localizations_en.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

326 lines
6.1 KiB
Dart

// ignore: unused_import
import 'package:intl/intl.dart' as intl;
import 'app_localizations.dart';
// ignore_for_file: type=lint
/// The translations for English (`en`).
class AppLocalizationsEn extends AppLocalizations {
AppLocalizationsEn([String locale = 'en']) : super(locale);
@override
String get appTitle => 'FoodAI';
@override
String get greetingMorning => 'Good morning';
@override
String get greetingAfternoon => 'Good afternoon';
@override
String get greetingEvening => 'Good evening';
@override
String get caloriesUnit => 'kcal';
@override
String get gramsUnit => 'g';
@override
String get goalLabel => 'goal:';
@override
String get consumed => 'Consumed';
@override
String get remaining => 'Remaining';
@override
String get exceeded => 'Exceeded';
@override
String get proteinLabel => 'Protein';
@override
String get fatLabel => 'Fat';
@override
String get carbsLabel => 'Carbs';
@override
String get today => 'Today';
@override
String get yesterday => 'Yesterday';
@override
String get mealsSection => 'Meals';
@override
String get addDish => 'Add dish';
@override
String get scanDish => 'Scan';
@override
String get menu => 'Menu';
@override
String get dishHistory => 'Dish history';
@override
String get recommendCook => 'We recommend cooking';
@override
String get camera => 'Camera';
@override
String get gallery => 'Gallery';
@override
String get analyzingPhoto => 'Analyzing photo...';
@override
String get inQueue => 'You are in queue';
@override
String queuePosition(int position) {
return 'Position $position';
}
@override
String get processing => 'Processing...';
@override
String get upgradePrompt => 'Skip the queue? Upgrade →';
@override
String get recognitionFailed => 'Recognition failed. Try again.';
@override
String get dishRecognition => 'Dish recognition';
@override
String get all => 'All';
@override
String get dishRecognized => 'Dish recognized';
@override
String get recognizing => 'Recognizing…';
@override
String get recognitionError => 'Recognition error';
@override
String get dishResultTitle => 'Dish recognized';
@override
String get selectDish => 'Select dish';
@override
String get dishNotRecognized => 'Dish not recognized';
@override
String get tryAgain => 'Try again';
@override
String get nutritionApproximate =>
'Nutrition is approximate — estimated from photo.';
@override
String get portion => 'Portion';
@override
String get mealType => 'Meal type';
@override
String get dateLabel => 'Date';
@override
String get addToJournal => 'Add to journal';
@override
String get addFailed => 'Failed to add. Try again.';
@override
String get historyTitle => 'Recognition history';
@override
String get historyLoadError => 'Failed to load history';
@override
String get retry => 'Retry';
@override
String get noHistory => 'No recognitions yet';
@override
String get profileTitle => 'Profile';
@override
String get edit => 'Edit';
@override
String get bodyParams => 'BODY PARAMS';
@override
String get goalActivity => 'GOAL & ACTIVITY';
@override
String get nutrition => 'NUTRITION';
@override
String get settings => 'SETTINGS';
@override
String get height => 'Height';
@override
String get weight => 'Weight';
@override
String get age => 'Age';
@override
String get gender => 'Gender';
@override
String get genderMale => 'Male';
@override
String get genderFemale => 'Female';
@override
String get goalLoss => 'Weight loss';
@override
String get goalMaintain => 'Maintenance';
@override
String get goalGain => 'Muscle gain';
@override
String get activityLow => 'Low';
@override
String get activityMedium => 'Medium';
@override
String get activityHigh => 'High';
@override
String get calorieGoal => 'Calorie goal';
@override
String get mealTypes => 'Meal types';
@override
String get formulaNote => 'Calculated using the Mifflin-St Jeor formula';
@override
String get language => 'Language';
@override
String get notSet => 'Not set';
@override
String get calorieHint => 'Enter body params to calculate calorie goal';
@override
String get logout => 'Log out';
@override
String get editProfile => 'Edit profile';
@override
String get cancel => 'Cancel';
@override
String get save => 'Save';
@override
String get nameLabel => 'Name';
@override
String get heightCm => 'Height (cm)';
@override
String get weightKg => 'Weight (kg)';
@override
String get birthDate => 'Date of birth';
@override
String get nameRequired => 'Enter name';
@override
String get profileUpdated => 'Profile updated';
@override
String get profileSaveFailed => 'Failed to save';
@override
String get mealTypeBreakfast => 'Breakfast';
@override
String get mealTypeSecondBreakfast => 'Second breakfast';
@override
String get mealTypeLunch => 'Lunch';
@override
String get mealTypeAfternoonSnack => 'Afternoon snack';
@override
String get mealTypeDinner => 'Dinner';
@override
String get mealTypeSnack => 'Snack';
@override
String get navHome => 'Home';
@override
String get navProducts => 'Products';
@override
String get navRecipes => 'Recipes';
@override
String get addFromReceiptOrPhoto => 'Add from receipt or photo';
@override
String get chooseMethod => 'Choose method';
@override
String get photoReceipt => 'Photo of receipt';
@override
String get photoReceiptSubtitle => 'Recognize all items from a receipt';
@override
String get photoProducts => 'Photo of products';
@override
String get photoProductsSubtitle => 'Fridge, table, shelf — up to 3 photos';
@override
String get addPackagedFood => 'Add packaged food';
@override
String get scanBarcode => 'Scan barcode';
@override
String get portionWeightG => 'Portion weight (g)';
@override
String get productNotFound => 'Product not found';
@override
String get enterManually => 'Enter manually';
@override
String get perHundredG => 'per 100 g';
}