"""
Amar Krishi - Translation Dictionary
All static UI text is stored here. Templates use t('key') via Jinja context
processor (see app.py) so the entire site can switch language instantly.
"""

TRANSLATIONS = {
    "en": {
        "app_name": "Amar Krishi",
        "tagline": "Digital Farming Assistance Platform",
        "nav_dashboard": "Dashboard",
        "nav_crop_advisory": "Crop Advisory",
        "nav_disease_detection": "AI Disease Detection",
        "nav_fertilizer": "Fertilizer Suggestion",
        "nav_weather": "Weather & Alerts",
        "nav_market": "Market Prices",
        "nav_irrigation": "Irrigation Management",
        "nav_pest": "Pest Prediction",
        "nav_expense": "Expense Tracker",
        "nav_yield": "Yield Prediction",
        "nav_subsidy": "Subsidy & Loans",
        "nav_assistant": "AI Assistant",
        "nav_forum": "Community Forum",
        "nav_consultation": "Expert Consultation",
        "nav_settings": "Settings",
        "nav_help": "Need Help? Contact Support",
        "login": "Login",
        "register": "Register",
        "logout": "Logout",
        "forgot_password": "Forgot Password?",
        "remember_me": "Remember Me",
        "email": "Email",
        "password": "Password",
        "confirm_password": "Confirm Password",
        "full_name": "Full Name",
        "phone": "Phone Number",
        "district": "District",
        "address": "Address",
        "land_size": "Land Size (acres)",
        "welcome_back": "Welcome Back",
        "create_account": "Create Your Account",
        "hero_title_1": "Smart Farming for",
        "hero_title_2": "Better Tomorrow",
        "hero_subtitle": "Accurate information, modern technology, sustainable agriculture",
        "get_started": "Get Started",
        "active_farmers": "Active Farmers",
        "crops_supported": "Crops Supported",
        "accuracy_rate": "Accuracy Rate",
        "ai_support": "AI Support",
        "todays_summary": "Today's Summary",
        "quick_actions": "Quick Actions",
        "weather_today": "Today's Weather",
        "disease_alert": "Disease Alert",
        "todays_market_price": "Today's Market Price",
        "crop_status": "Crop Status",
        "view_details": "View Details",
        "view_market": "View Market Details",
        "market_price_update": "Market Price Update",
        "weather_alerts": "Weather Alerts",
        "view_full_market": "View Full Market →",
        "smart_features": "Smart Features",
        "sms_alerts_enabled": "SMS Alerts Enabled",
        "sms_alerts_desc": "Get flood, storm and weather alerts for your area via SMS",
        "enable_settings": "Go to Settings",
        "crop_name": "Crop",
        "today_price": "Today's Price",
        "yesterday_price": "Yesterday's Price",
        "change": "Change",
        "best_market": "Best Market",
        "soil_type": "Soil Type",
        "season": "Season",
        "water_availability": "Water Availability",
        "suggest_crops": "Suggest Best Crops",
        "upload_leaf_image": "Upload a leaf image",
        "analyze": "Analyze Image",
        "confidence_score": "Confidence Score",
        "symptoms": "Symptoms",
        "possible_cause": "Possible Cause",
        "treatment": "Treatment",
        "prevention": "Prevention",
        "medicine_suggestion": "Medicine Suggestion",
        "download_report": "Download Report",
        "temperature": "Temperature",
        "humidity": "Humidity",
        "wind_speed": "Wind Speed",
        "rain_probability": "Rain Probability",
        "best_irrigation_time": "Best Irrigation Time",
        "income": "Income",
        "expense": "Expense",
        "profit": "Profit",
        "profit_margin": "Profit Margin",
        "ai_assistant": "AI Assistant",
        "ai_assistant_desc": "Your personal farming helper",
        "ask_question": "Ask a Question",
        "community_forum": "Community Forum",
        "join_discussion": "Join Discussion",
        "expert_consultation": "Expert Consultation",
        "chat_now": "Chat Now",
        "book_call": "Book a Call",
        "govt_schemes": "Government Agricultural Schemes",
        "agri_news": "Agriculture News",
        "emergency_contact": "Emergency Helpline",
        "support_24_7": "24/7 Support Number",
        "profile": "Profile",
        "edit_profile": "Edit Profile",
        "save_changes": "Save Changes",
        "language": "Language",
        "dark_mode": "Dark Mode",
        "notifications": "Notifications",
        "all_rights_reserved": "Amar Krishi - Digital Farming Assistance Platform",
        "privacy_policy": "Privacy Policy",
        "terms": "Terms of Service",
        "contact_us": "Contact Us",
    },
    "bn": {
        "app_name": "আমার কৃষি",
        "tagline": "ডিজিটাল কৃষি সহায়তা প্ল্যাটফর্ম",
        "nav_dashboard": "ড্যাশবোর্ড",
        "nav_crop_advisory": "ফসল পরামর্শ",
        "nav_disease_detection": "এআই রোগ সনাক্তকরণ",
        "nav_fertilizer": "সার পরামর্শ",
        "nav_weather": "আবহাওয়া ও সতর্কতা",
        "nav_market": "বাজারদর",
        "nav_irrigation": "সেচ ব্যবস্থাপনা",
        "nav_pest": "কীটপতঙ্গ পূর্বাভাস",
        "nav_expense": "খরচ হিসাব",
        "nav_yield": "ফলন পূর্বাভাস",
        "nav_subsidy": "ভর্তুকি ও ঋণ তথ্য",
        "nav_assistant": "এআই সহায়ক",
        "nav_forum": "কৃষক ফোরাম",
        "nav_consultation": "বিশেষজ্ঞ পরামর্শ",
        "nav_settings": "সেটিংস",
        "nav_help": "সাহায্য দরকার? সাপোর্টে যোগাযোগ করুন",
        "login": "লগইন",
        "register": "নিবন্ধন",
        "logout": "লগআউট",
        "forgot_password": "পাসওয়ার্ড ভুলে গেছেন?",
        "remember_me": "মনে রাখুন",
        "email": "ইমেইল",
        "password": "পাসওয়ার্ড",
        "confirm_password": "পাসওয়ার্ড নিশ্চিত করুন",
        "full_name": "পূর্ণ নাম",
        "phone": "ফোন নম্বর",
        "district": "জেলা",
        "address": "ঠিকানা",
        "land_size": "জমির পরিমাণ (একর)",
        "welcome_back": "স্বাগতম",
        "create_account": "আপনার অ্যাকাউন্ট তৈরি করুন",
        "hero_title_1": "স্মার্ট কৃষি",
        "hero_title_2": "উন্নত আগামীর জন্য",
        "hero_subtitle": "সঠিক তথ্য, আধুনিক প্রযুক্তি, সমৃদ্ধ কৃষি",
        "get_started": "শুরু করুন",
        "active_farmers": "সক্রিয় কৃষক",
        "crops_supported": "সমর্থিত ফসল",
        "accuracy_rate": "নির্ভুলতার হার",
        "ai_support": "এআই সাপোর্ট",
        "todays_summary": "আজকের সারাংশ",
        "quick_actions": "দ্রুত অ্যাকশন",
        "weather_today": "আজকের আবহাওয়া",
        "disease_alert": "রোগ সতর্কতা",
        "todays_market_price": "আজকের বাজারদর",
        "crop_status": "ফসলের অবস্থা",
        "view_details": "বিস্তারিত দেখুন",
        "view_market": "বাজারদর বিস্তারিত",
        "market_price_update": "বাজারদর আপডেট",
        "weather_alerts": "আবহাওয়া সতর্কতা",
        "view_full_market": "সম্পূর্ণ বাজারদর দেখুন →",
        "smart_features": "স্মার্ট ফিচারস",
        "sms_alerts_enabled": "এসএমএস সতর্কতা চালু আছে",
        "sms_alerts_desc": "আপনার এলাকার জরুরি আবহাওয়া আপডেট পান এসএমএস এর মাধ্যমে",
        "enable_settings": "সেটিং করুন",
        "crop_name": "ফসল",
        "today_price": "আজকের দাম",
        "yesterday_price": "গতকালের দাম",
        "change": "পরিবর্তন",
        "best_market": "সেরা বাজার",
        "soil_type": "মাটির ধরন",
        "season": "মৌসুম",
        "water_availability": "পানির প্রাপ্যতা",
        "suggest_crops": "সেরা ফসল সাজেস্ট করুন",
        "upload_leaf_image": "পাতার ছবি আপলোড করুন",
        "analyze": "ছবি বিশ্লেষণ করুন",
        "confidence_score": "নির্ভুলতার মাত্রা",
        "symptoms": "লক্ষণ",
        "possible_cause": "সম্ভাব্য কারণ",
        "treatment": "চিকিৎসা",
        "prevention": "প্রতিরোধ",
        "medicine_suggestion": "ঔষধ সাজেশন",
        "download_report": "রিপোর্ট ডাউনলোড করুন",
        "temperature": "তাপমাত্রা",
        "humidity": "আর্দ্রতা",
        "wind_speed": "বাতাসের গতি",
        "rain_probability": "বৃষ্টির সম্ভাবনা",
        "best_irrigation_time": "সেচের সেরা সময়",
        "income": "আয়",
        "expense": "খরচ",
        "profit": "লাভ",
        "profit_margin": "লাভের হার",
        "ai_assistant": "এআই সহায়ক",
        "ai_assistant_desc": "আপনার ব্যক্তিগত কৃষি সহায়ক",
        "ask_question": "প্রশ্ন করুন",
        "community_forum": "কৃষক ফোরাম",
        "join_discussion": "ফোরামে যান",
        "expert_consultation": "বিশেষজ্ঞ পরামর্শ",
        "chat_now": "চ্যাট করুন",
        "book_call": "কল বুক করুন",
        "govt_schemes": "সরকারি কৃষি প্রকল্প",
        "agri_news": "কৃষি সংবাদ",
        "emergency_contact": "জরুরি হেল্পলাইন",
        "support_24_7": "২৪/৭ হেল্পলাইন নম্বর",
        "profile": "প্রোফাইল",
        "edit_profile": "প্রোফাইল সম্পাদনা করুন",
        "save_changes": "পরিবর্তন সংরক্ষণ করুন",
        "language": "ভাষা",
        "dark_mode": "ডার্ক মোড",
        "notifications": "নোটিফিকেশন",
        "all_rights_reserved": "আমার কৃষি - ডিজিটাল কৃষি সহায়তা প্ল্যাটফর্ম",
        "privacy_policy": "প্রাইভেসি পলিসি",
        "terms": "শর্তাবলী",
        "contact_us": "যোগাযোগ করুন",
    },
}


def get_text(key, lang="bn"):
    """Return translated text for a given key/language, fallback to English, then the key itself."""
    return TRANSLATIONS.get(lang, {}).get(key) or TRANSLATIONS["en"].get(key, key)
