// @ts-check
/** English catalog: source of truth for PWA core-surface keys. */

/** @type {Readonly<Record<string, string>>} */
export const en = Object.freeze({
  // Shell / nav
  "nav.home": "Home",
  "nav.progress": "Progress",
  "nav.coach": "Coach",
  "nav.settings": "Settings",
  "nav.primary": "Primary",
  "app.title": "Chompass",
  "app.description": "Ad-free calorie tracker. Installable PWA for any modern browser (Chromium works best).",

  // Common actions
  "action.save": "Save",
  "action.cancel": "Cancel",
  "action.done": "Done",
  "action.ok": "OK",
  "action.delete": "Delete",
  "action.continue": "Continue",
  "action.get_started": "Get started",
  "action.retry": "Retry",
  "action.back": "Back",
  "action.close": "Close",
  "action.log": "Log",
  "action.edit": "Edit",
  "action.confirm": "Confirm",

  // Settings hub
  "settings.title": "Settings",
  "settings.hub.personal": "Personal Info",
  "settings.hub.personal_hint": "Gender, height, weight, measurements",
  "settings.hub.goals": "Goals & Nutrition",
  "settings.hub.goals_hint": "Diet, macros, adaptive goals",
  "settings.hub.app": "App & Display",
  "settings.hub.app_hint": "Appearance, home, water, notifications",
  "settings.hub.ai": "AI & Speech",
  "settings.hub.ai_hint": "Providers, models, speech",
  "settings.hub.data": "Health & Data",
  "settings.hub.data_hint": "Health Connect, export, sync",
  "settings.hub.about": "About",
  "settings.hub.about_hint": "Version, licenses, privacy",
  "settings.app.title": "App & Display",
  "settings.app.language": "Language",
  "settings.app.language_hint": "App display language",
  "settings.app.units": "Units & schedule",
  "settings.app.units_hint": "Units, week, meals, accent",
  "settings.app.home": "Home display",
  "settings.app.home_hint": "Water, gauge, chips",
  "settings.app.install": "Install",
  "settings.app.install_hint": "Add to home screen",
  "settings.language.title": "Language",
  "settings.language.auto": "System default",
  "settings.language.auto_hint": "Match the browser language when supported",
  "settings.language.label": "Display language",
  "settings.speech.language": "Speech language",
  "settings.speech.browser_default": "Browser default",

  // Diary / home
  "diary.empty": "No entries yet for this day. Tap + to log food.",
  "diary.empty_no_profile": "Set up your profile to start tracking.",
  "diary.nothing": "Nothing here yet.",
  "diary.add_food": "Add food",
  "add_food.hero_photo": "Photo",
  "add_food.hero_photo_sub": "Camera or gallery",
  "add_food.hero_note": "Note",
  "add_food.hero_note_sub": "Describe what you ate",
  "add_food.hero_recents": "Recents",
  "add_food.hero_recents_sub": "Recents & favorites",
  "add_food.quick_relog": "Log again",
  "add_food.quick_relog_empty": "Favorite a meal or log one once. It will show up here for one-tap re-log.",
  "add_food.more_section": "More ways to log",
  "add_food.voice": "Voice",
  "add_food.barcode": "Barcode",
  "add_food.manual": "Manual",
  "add_food.copy": "Copy from day",
  "add_food.frequent": "Frequent",
  "add_food.favorites": "Favorites",
  "diary.view_more": "View More",
  "diary.prev_day": "Previous day",
  "diary.next_day": "Next day",
  "diary.today": "Today",
  "diary.water": "Water",
  "diary.calories": "Calories",
  "diary.remaining": "remaining",
  "diary.eaten": "eaten",
  "diary.goal": "goal",
  "diary.calorie_budget_title": "Today's calorie budget",
  "diary.calorie_budget_goal_plus_active": "Goal {goal} + {active} active",
  "diary.calorie_budget_awaiting": "Your goal will grow once activity burn is recorded",
  "diary.calorie_budget_source_estimated": "Active calories estimated from your activity level",
  "diary.calorie_budget_source_manual": "Calories you logged manually",
  "diary.calorie_budget_goal": "Daily goal {goal} kcal",
  "diary.calorie_budget_info": "How today's budget is calculated",
  "meal.breakfast": "Breakfast",
  "meal.lunch": "Lunch",
  "meal.dinner": "Dinner",
  "meal.snack": "Snack",

  // Progressive meal draft
  "progressive_meal.title": "Building meal",
  "progressive_meal.name_placeholder": "Meal name (optional)",
  "progressive_meal.add_next": "Add next ingredient",
  "progressive_meal.add_to_meal": "Add to meal",
  "progressive_meal.add_another": "Add another",
  "progressive_meal.log": "Log meal",
  "progressive_meal.discard": "Discard meal",
  "progressive_meal.ingredient_count": "{count} ingredients",
  "progressive_meal.empty": "No ingredients yet",
  "progressive_meal.remove": "Remove ingredient",
  "progressive_meal.continue": "Continue meal ({count})",
  "progressive_meal.totals": "Meal totals",
  "progressive_meal.meal_label": "Meal",

  // Manual active burn
  "manual_active.title": "Log active burn",
  "manual_active.title_short": "Active burn",
  "manual_active.subtitle": "Add burned calories from a walk, ride, or workout. They extend today’s budget when “Add active burn” is on.",
  "manual_active.name_hint": "Activity name (optional)",
  "manual_active.kcal_hint": "Calories burned",
  "manual_active.save": "Add to budget",

  // Progress
  "progress.title": "Progress",
  "progress.weight": "Weight",
  "progress.body_fat": "Body fat",
  "progress.measurements": "Measurements",
  "progress.forecast": "Forecast",
  "progress.empty": "Log weight or body fat to see charts.",
  "progress.range_1w": "1W",
  "progress.range_1m": "1M",
  "progress.range_3m": "3M",
  "progress.range_6m": "6M",
  "progress.range_1y": "1Y",
  "progress.range_all": "All",
  "progress.weight_raw_legend": "Weigh-in",
  "progress.weight_trend_legend": "7-day trend",
  "progress.weight_trend_need_more": "7-day trend needs at least 2 weigh-in days",
"progress.log_weight": "Log Weight",
"progress.log_body_fat": "Log Body Fat",
"progress.metric_body_fat": "Body Fat",
"progress.stat_current": "Current",
"progress.stat_goal": "Goal",
"progress.stat_net_change": "Net Change",
"progress.stat_average": "Average",
"progress.weight_history": "Weight History",
"progress.body_fat_history": "Body Fat History",
"progress.history_count_format": "{count} entries · tap to view or delete",
"progress.avg_format": "Avg: {avg} kcal",
"progress.macro_averages": "Macro Averages",
"progress.macro_progress_format": "{current}g / {goal}g",
"progress.log_first_weight": "Log your first weight to see trends",
"progress.log_first_body_fat": "Log your first body fat % to see trends",
"progress.no_food": "No food logged yet",
  "settings.progress_default_range": "Progress default range",

  // Onboarding
  "onboarding.welcome_title": "Welcome to Chompass",
  "onboarding.welcome_body": "Track food. Keep control.",
  "onboarding.get_started": "Get started",
  "onboarding.continue": "Continue",
  "onboarding.start_logging": "Start logging",
  "onboarding.back": "Back",
  "onboarding.skip": "Skip",
  "onboarding.skip_ai": "Skip for now",
  "onboarding.step.sex": "About you",
  "onboarding.step.age": "Birthday & age",
  "onboarding.step.body": "Height & weight",
  "onboarding.step.body_fat": "Body fat (optional)",
  "onboarding.step.activity": "Activity level",
  "onboarding.step.goal": "Your goal",
  "onboarding.step.diet": "Diet mode",
  "onboarding.step.goal_details": "Pace & goal weight",
  "onboarding.step.ai": "Connect AI (optional)",
  "onboarding.step.building": "Building your plan",
  "onboarding.step.done": "Your plan is ready",
  "onboarding.welcome_sub": "Ad-free calorie tracking in your browser. Data stays on this device and exports to the Android app.",
  "onboarding.feature.local_title": "Local-first diary",
  "onboarding.feature.local_body": "Meals, macros, and progress without accounts.",
  "onboarding.feature.ai_title": "Bring your own AI",
  "onboarding.feature.ai_body": "Optional Gemini / Claude keys. Keys leave this device only for the provider you choose.",
  "onboarding.feature.parity_title": "Android parity",
  "onboarding.feature.parity_body": "Same formulas and export format as the native app.",
  "onboarding.sex.male": "Male",
  "onboarding.sex.female": "Female",
  "onboarding.sex.other": "Other / prefer not to say",
  "onboarding.age.hint": "Birthday is preferred (matches Android). Age is used when birthday is blank.",
  "onboarding.age.birthday": "Birthday",
  "onboarding.age.years": "Age (years)",
  "onboarding.body.height_cm": "Height (cm)",
  "onboarding.body.weight_kg": "Weight (kg)",
  "onboarding.body_fat.hint": "Optional. Enables Katch-McArdle BMR when set.",
  "onboarding.body_fat.pct": "Body fat %",
  "onboarding.body_fat.goal_pct": "Goal body fat % (optional)",
  "onboarding.body_fat.placeholder": "e.g. 18",
  "onboarding.body_fat.goal_placeholder": "e.g. 15",
  "onboarding.activity.sedentary": "Sedentary",
  "onboarding.activity.sedentary_sub": "Desk job, little exercise",
  "onboarding.activity.light": "Light",
  "onboarding.activity.light_sub": "Walks or light training 1 to 3×/week",
  "onboarding.activity.moderate": "Moderate",
  "onboarding.activity.moderate_sub": "Training 3 to 5×/week",
  "onboarding.activity.active": "Active",
  "onboarding.activity.active_sub": "Hard training most days",
  "onboarding.activity.very_active": "Very active",
  "onboarding.activity.very_active_sub": "Physical job + training",
  "onboarding.activity.extra_active": "Extra active",
  "onboarding.activity.extra_active_sub": "Very hard training / labor",
  "onboarding.goal.lose": "Lose weight",
  "onboarding.goal.lose_sub": "Steady calorie deficit",
  "onboarding.goal.maintain": "Maintain",
  "onboarding.goal.maintain_sub": "Hold your current weight",
  "onboarding.goal.gain": "Gain weight",
  "onboarding.goal.gain_sub": "Surplus for muscle or mass",
  "onboarding.diet.standard": "Standard",
  "onboarding.diet.standard_sub": "Balanced macros from your targets",
  "onboarding.diet.keto": "Keto",
  "onboarding.diet.keto_sub": "Net-carb clamp with higher fat",
  "onboarding.pace.maintain_hint": "You'll maintain around your current weight. You can set a goal weight later in Settings.",
  "onboarding.pace.goal_weight_kg": "Goal weight (kg)",
  "onboarding.pace.optional": "optional",
  "onboarding.pace.kg_week": "kg / week",
  "onboarding.pace.slow": "Slow",
  "onboarding.pace.recommended": "Recommended",
  "onboarding.pace.fast": "Fast",
  "onboarding.pace.weekly_aria": "Weekly pace",
  "onboarding.pace.eta_prefix": "Reach your goal in",
  "onboarding.pace.days_unit": "days",
  "onboarding.pace.caption_slow": "Slower and easier to sustain long-term.",
  "onboarding.pace.caption_recommended": "A steady, well-rounded pace for most people.",
  "onboarding.pace.caption_fast": "Faster progress, but harder to stick with.",
  "onboarding.ai.hint": "Optional API key for food photos and coach. Google AI Studio is free and recommended.",
  "onboarding.ai.recommended_title": "Recommended: Google AI Studio",
  "onboarding.ai.recommended_subtitle": "Free and high quality. Best for food photos.",
  "onboarding.ai.howto_summary": "How to get a free Google AI Studio key",
  "onboarding.ai.howto_1": "Open aistudio.google.com/apikey",
  "onboarding.ai.howto_2": "Sign in with Google and create an API key",
  "onboarding.ai.howto_3": "Copy it and paste below, then tap Test key",
  "onboarding.ai.provider": "Provider",
  "onboarding.ai.model": "Model",
  "onboarding.ai.key": "API key",
  "onboarding.ai.key_placeholder": "Paste key to enable AI",
  "onboarding.ai.test_key": "Test key",
  "onboarding.ai.paste_key_first": "Paste an API key first.",
  "onboarding.ai.key_saved_gemini_only": "Key saved. Quick test is Gemini-only.",
  "onboarding.ai.key_works": "Key works.",
  "onboarding.ai.testing": "Testing…",
  "onboarding.ai.footer": "Your key stays in this browser. You can change providers anytime in Settings.",
  "onboarding.ai.privacy_summary": "What data is sent to the AI provider?",
  "onboarding.ai.privacy_lead": "With a cloud provider, this data leaves your browser to that provider:",
  "onboarding.ai.privacy_food": "Food photos and meal notes (food analysis)",
  "onboarding.ai.privacy_coach": "Coach chat, including your profile and recent logs",
  "onboarding.ai.privacy_goals": "Your profile when AI estimates goals (plan and adaptive goals)",
  "onboarding.ai.privacy_private": "Only the on-device Gemma 4 models (Android) guarantee that nothing leaves your device. The web app always uses a cloud provider.",
  "onboarding.ai.skip_title": "Continue without a cloud key?",
  "onboarding.ai.skip_body": "Food photo AI and coach need an API key. On-device AI is Android-only. You can add a free Google AI Studio key anytime in Settings.",
  "onboarding.ai.skip_confirm": "Continue anyway",
  "onboarding.building.calculating": "Calculating targets from your profile…",
  "onboarding.building.calorie_target": "Calorie target",
  "onboarding.building.protein_goal": "Protein goal",
  "onboarding.building.carb_fat": "Carb & fat split",
  "onboarding.building.activity": "Activity adjustment",
  "onboarding.building.safety": "Safety checks",
  "onboarding.plan.kcal_day": "kcal / day",
  "onboarding.plan.custom": "custom",
  "onboarding.plan.protein": "Protein",
  "onboarding.plan.carbs": "Carbs",
  "onboarding.plan.fat": "Fat",
  "onboarding.plan.edit_calories_a11y": "Edit calorie target",
  "onboarding.plan.customize_hint": "Tap a target to customize. You can adjust them anytime in Settings.",
  "onboarding.health.title": "Health disclaimer",
  "onboarding.health.body": "Chompass is a tracking helper, not a clinical tool. Formula estimates can be off. If you have a medical condition, are pregnant or breastfeeding, are under 18, or have a history of disordered eating, pause and talk with a doctor or therapist before continuing. This is not medical advice.",
  "onboarding.accuracy.title": "Accuracy disclaimer",
  "onboarding.accuracy.body": "Photo estimates and vague quantity labels (handful, cup, serving) are often inaccurate. App suggestions and especially AI/LLM output are estimates only, not medical facts. Verify important numbers yourself.",

  // Coach
  "coach.title": "Coach",
  "coach.placeholder": "Ask your coach…",
  "coach.send": "Send",

  // Dialogs / errors
  "dialog.confirm_title": "Confirm",
  "dialog.delete_title": "Delete?",
  "error.generic": "Something went wrong.",
  "error.network": "Network error. Check your connection.",
  "error.invalid_json": "Invalid JSON",
  "error.unknown": "Unknown error",
  "error.webdav_sync": "WebDAV sync failed",
  "error.load_failed": "Could not load data.",
  "toast.saved": "Saved",
  "toast.deleted": "Deleted",
  "toast.copied": "Copied",

  // Entry / meal constituents
  "entry.constituents.title": "Ingredients",
  "entry.constituents.count": "Ingredients ({count})",
  "entry.constituents.add": "Add ingredient",
  "entry.constituents.remove": "Remove ingredient",
  "entry.constituents.name": "Name",
  "entry.constituents.quantity": "Quantity",
  "entry.constituents.unit": "Unit",
  "entry.constituents.item_fallback": "Ingredient",
  "entry.constituents.macros": "{calories} kcal · P {protein} · C {carbs} · F {fat}",

  // Serving unit label (app-generated "serving" option from OFF / heuristics)
  "unit.serving": "serving",
  "unit.serving_plural": "servings",
  "unit.cup": "cup",
  "unit.cup_plural": "cups",
  "unit.tbsp": "tbsp",
  "unit.tsp": "tsp",

  // A11y
  "a11y.open_menu": "Open menu",
  "a11y.close_sheet": "Close sheet",
  "a11y.add_food": "Add food",
  "a11y.primary_nav": "Primary",
  "settings.ai.ai_features": "AI features",
  "settings.ai.ai_features_hint": "Turns off everything that sends data to an AI provider: the Coach, photo/text/voice logging, \"What if?\" and AI goal suggestions. Barcode, food search, manual entry, saved meals, water, sync and Health Connect keep working normally.",
  "settings.ai.meal_constituents": "Meal ingredient breakdown",
  "settings.ai.meal_constituents_hint": "Ask the AI to split composite meals into editable ingredients. Turn off for weaker models if results look inconsistent.",
  "settings.ai.serving_unit_mode": "Serving unit inference",
  "settings.ai.serving_unit_mode_hint": "How to fill a non-gram unit when the model omits one. Grams only is fastest; heuristic guesses from the food name; AI-inferred asks the model for the unit when needed.",
  "settings.ai.serving_unit_grams_only": "Grams only",
  "settings.ai.serving_unit_heuristic": "Heuristic",
  "settings.ai.serving_unit_ai_call": "AI-inferred",
  "analysis.phase.preparing": "Preparing request…",
  "analysis.phase.barcode": "Checking barcodes…",
  "analysis.phase.calling_ai": "Calling AI…",
  "analysis.phase.parsing": "Reading result…",
  "analysis.phase.filling": "Filling in nutrition…",
  "voice.status_listening": "Listening…",
  "voice.status_got_it": "Got it. Tap Use to continue",
  "voice.status_tap_mic": "Tap the mic to start",
  "voice.placeholder": "Your words will appear here",
  "voice.stop": "Stop",
  "voice.start_listening": "Start listening",
  "voice.use": "Use",
  "voice.hint": "Speak a food description, then Use to analyze.",
  "errors.paste_key_first": "Paste an API key first.",
  "errors.network_check": "Network error. Check your connection and try again.",
  "errors.ai_features_disabled": "AI features are turned off in Settings → AI & Speech.",
  "errors.coach_tool_limit": "Coach could not answer. Try rephrasing your question.",
  "errors.provide_photo_or_text": "Provide a photo or a text description.",
  "errors.parse_estimate": "Could not parse nutrition estimate from the model. Try again.",
  "errors.parse_goal": "Could not parse goal calculation from the model.",
  "errors.missing_calories": "Goal calculation missing calories.",
  "install.prompt_tip": "Install Chompass for quicker access and a full-screen app.",
  "install.banner_ios_nonsafari": "This browser cannot install apps on iOS. Open this page in Safari, then tap Share → “Add to Home Screen”.",
  "install.banner_ios": "Add Chompass to your Home Screen: tap Share → “Add to Home Screen”, then open from the icon (not a Safari tab).",
  "install.banner_ddg": "DuckDuckGo cannot fully install PWAs. Use the menu for a shortcut, or open in Chrome / Firefox to install.",
  "install.banner_firefox": "Firefox has no in-page install button. Use the menu (⋮) → Add to Home screen.",
  "install.banner_default": "Install Chompass to your home screen or dock for easier access.",
  "install.sheet_title": "Add to Home Screen",
  "install.full_guide": "Full install guide",
  "install.full_guide_short": "Full guide",
  "install.got_it": "Got it",
  "install.install": "Install",
  "install.how_to_add": "How to add",
  "install.dismiss": "Dismiss",
  "install.not_now": "Not now",
  "install.sheet_post_title": "Install Chompass",
  "install.post_lead": "Install Chompass for a full-screen icon on your home screen or dock.",
  "install.howto_link": "How to install",
  "install.help_ios_nonsafari_tip": "On iOS, only Safari can install home-screen web apps. Open Chompass in Safari:",
  "install.help_ios_nonsafari_step1": "Copy this page’s address and open it in Safari.",
  "install.help_ios_step_share": "Tap Share (square with an upward arrow).",
  "install.help_ios_step_add": "Choose Add to Home Screen, then Add.",
  "install.help_ios_nonsafari_step2": "Open from the home-screen icon (not a browser tab).",
  "install.help_ios_tip": "Add Chompass to your Home Screen from Safari:",
  "install.help_ios_step_open": "Open from the home-screen icon (not a Safari tab).",
  "install.help_ddg_tip": "DuckDuckGo on Android does not support full PWA install. Use the browser menu for a shortcut, or open Chompass in Chrome / Firefox for a better install:",
  "install.help_step_browser_menu": "Tap the browser menu (⋮).",
  "install.help_ddg_step_add": "Tap Add to Home / Add to Home Screen.",
  "install.help_ddg_step_blocked": "If nothing happens, your launcher may block shortcuts. Try Chrome or Firefox, or set a Home app under Android Settings → Apps → Default apps.",
  "install.help_ddg_note": "For a full-screen installed app, open https://chompass.app/app/ in Chrome, Edge, or Brave, then use Install app / Add to Home screen.",
  "install.help_firefox_tip": "Firefox on Android installs from the browser menu (there is no in-page install popup):",
  "install.help_step_firefox_menu": "Tap the Firefox menu (⋮).",
  "install.help_firefox_step_add": "Tap Add to Home screen or Add app to Home screen.",
  "install.help_step_confirm_open": "Confirm. Open Chompass from the new icon afterward.",
  "install.help_firefox_note": "If the menu item does nothing, check Android Settings → Apps → Default apps → Home app (it must not be “None”). Chromium browsers (Chrome, Edge, Brave) usually install more reliably.",
  "install.help_android_tip": "Install from your browser menu:",
  "install.help_step_open_menu": "Open the browser menu (⋮).",
  "install.help_android_step_add": "Tap Install app or Add to Home screen.",
  "install.help_android_note": "Many Chromium browsers do not show an automatic install popup. Use the menu.",
  "install.help_desktop_tip": "Install from the address bar or browser menu:",
  "install.help_desktop_step1": "Look for the install icon in the address bar, or open the browser menu.",
  "install.help_desktop_step2": "Choose Install Chompass (or Install app).",
  "install.help_desktop_step3": "Launch from your dock, taskbar, or app launcher.",
  "install.help_desktop_note": "Firefox desktop has limited PWA install; bookmarking still works."
});
