feat: Flutter client localisation (12 languages)
Add flutter_localizations + intl, 12 ARB files (en/ru/es/de/fr/it/pt/zh/ja/ko/ar/hi), replace all hardcoded Russian UI strings with AppLocalizations, detect system locale on first launch, localise bottom nav bar labels, document rule in CLAUDE.md. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
100
client/lib/l10n/app_en.arb
Normal file
100
client/lib/l10n/app_en.arb
Normal file
@@ -0,0 +1,100 @@
|
||||
{
|
||||
"@@locale": "en",
|
||||
"appTitle": "FoodAI",
|
||||
"greetingMorning": "Good morning",
|
||||
"greetingAfternoon": "Good afternoon",
|
||||
"greetingEvening": "Good evening",
|
||||
"caloriesUnit": "kcal",
|
||||
"gramsUnit": "g",
|
||||
"goalLabel": "goal:",
|
||||
"consumed": "Consumed",
|
||||
"remaining": "Remaining",
|
||||
"exceeded": "Exceeded",
|
||||
"proteinLabel": "Protein",
|
||||
"fatLabel": "Fat",
|
||||
"carbsLabel": "Carbs",
|
||||
"today": "Today",
|
||||
"yesterday": "Yesterday",
|
||||
"mealsSection": "Meals",
|
||||
"addDish": "Add dish",
|
||||
"scanDish": "Scan",
|
||||
"menu": "Menu",
|
||||
"dishHistory": "Dish history",
|
||||
"recommendCook": "We recommend cooking",
|
||||
"camera": "Camera",
|
||||
"gallery": "Gallery",
|
||||
"analyzingPhoto": "Analyzing photo...",
|
||||
"inQueue": "You are in queue",
|
||||
"queuePosition": "Position {position}",
|
||||
"@queuePosition": {
|
||||
"placeholders": {
|
||||
"position": { "type": "int" }
|
||||
}
|
||||
},
|
||||
"processing": "Processing...",
|
||||
"upgradePrompt": "Skip the queue? Upgrade →",
|
||||
"recognitionFailed": "Recognition failed. Try again.",
|
||||
"dishRecognition": "Dish recognition",
|
||||
"all": "All",
|
||||
"dishRecognized": "Dish recognized",
|
||||
"recognizing": "Recognizing…",
|
||||
"recognitionError": "Recognition error",
|
||||
"dishResultTitle": "Dish recognized",
|
||||
"selectDish": "Select dish",
|
||||
"dishNotRecognized": "Dish not recognized",
|
||||
"tryAgain": "Try again",
|
||||
"nutritionApproximate": "Nutrition is approximate — estimated from photo.",
|
||||
"portion": "Portion",
|
||||
"mealType": "Meal type",
|
||||
"dateLabel": "Date",
|
||||
"addToJournal": "Add to journal",
|
||||
"addFailed": "Failed to add. Try again.",
|
||||
"historyTitle": "Recognition history",
|
||||
"historyLoadError": "Failed to load history",
|
||||
"retry": "Retry",
|
||||
"noHistory": "No recognitions yet",
|
||||
"profileTitle": "Profile",
|
||||
"edit": "Edit",
|
||||
"bodyParams": "BODY PARAMS",
|
||||
"goalActivity": "GOAL & ACTIVITY",
|
||||
"nutrition": "NUTRITION",
|
||||
"settings": "SETTINGS",
|
||||
"height": "Height",
|
||||
"weight": "Weight",
|
||||
"age": "Age",
|
||||
"gender": "Gender",
|
||||
"genderMale": "Male",
|
||||
"genderFemale": "Female",
|
||||
"goalLoss": "Weight loss",
|
||||
"goalMaintain": "Maintenance",
|
||||
"goalGain": "Muscle gain",
|
||||
"activityLow": "Low",
|
||||
"activityMedium": "Medium",
|
||||
"activityHigh": "High",
|
||||
"calorieGoal": "Calorie goal",
|
||||
"mealTypes": "Meal types",
|
||||
"formulaNote": "Calculated using the Mifflin-St Jeor formula",
|
||||
"language": "Language",
|
||||
"notSet": "Not set",
|
||||
"calorieHint": "Enter body params to calculate calorie goal",
|
||||
"logout": "Log out",
|
||||
"editProfile": "Edit profile",
|
||||
"cancel": "Cancel",
|
||||
"save": "Save",
|
||||
"nameLabel": "Name",
|
||||
"heightCm": "Height (cm)",
|
||||
"weightKg": "Weight (kg)",
|
||||
"birthDate": "Date of birth",
|
||||
"nameRequired": "Enter name",
|
||||
"profileUpdated": "Profile updated",
|
||||
"profileSaveFailed": "Failed to save",
|
||||
"mealTypeBreakfast": "Breakfast",
|
||||
"mealTypeSecondBreakfast": "Second breakfast",
|
||||
"mealTypeLunch": "Lunch",
|
||||
"mealTypeAfternoonSnack": "Afternoon snack",
|
||||
"mealTypeDinner": "Dinner",
|
||||
"mealTypeSnack": "Snack",
|
||||
"navHome": "Home",
|
||||
"navProducts": "Products",
|
||||
"navRecipes": "Recipes"
|
||||
}
|
||||
Reference in New Issue
Block a user