// Translation dictionary for Thai / English
const I18N = {
  en: {
    brand: "Verena Utility Records",
    welcome_title: "Welcome to Verena Utility Records",
    welcome_sub: "Internal platform for recording, tracking and analysing utility consumption across all Verena facilities.",
    sign_in: "Sign in",
    email: "Work email",
    password: "Password",
    forgot: "Forgot password?",
    remember: "Keep me signed in",
    continue: "Continue",
    or_sso: "or continue with",
    sso_google: "Google Workspace",
    sso_microsoft: "Microsoft 365",
    footer_legal: "© 2026 Verena Co., Ltd. · Internal use only",

    nav_dashboard: "Dashboard",
    nav_form: "New reading",
    nav_analytics: "Analytics",
    nav_users: "Users",
    nav_utilities: "Utilities",
    nav_settings: "Settings",
    nav_section_workspace: "Workspace",
    nav_section_admin: "Administration",

    search: "Search records, meters, users…",
    new_reading: "New reading",
    export_csv: "Export CSV",

    // Dashboard
    dash_title: "Dashboard",
    dash_sub: "Utility consumption across all buildings, this month.",
    kpi_electricity: "Electricity",
    kpi_water: "Water",
    kpi_internet: "Internet",
    kpi_phone: "Phone",
    kpi_vs_prev: "vs last month",
    chart_monthly: "Monthly consumption",
    chart_monthly_sub: "Last 12 months · all buildings",
    chart_breakdown: "Cost breakdown",
    chart_breakdown_sub: "This month · in Thai Baht",
    recent_title: "Recent submissions",
    recent_sub: "Latest meter readings logged by staff",
    col_date: "Date",
    col_meter: "Meter",
    col_type: "Type",
    col_reading: "Reading",
    col_usage: "Usage",
    col_submitted_by: "Submitted by",
    col_status: "Status",
    status_approved: "Approved",
    status_pending: "Pending",
    status_review: "Review",
    filter_month: "Month",
    filter_year: "Year",
    filter_building: "Building",
    filter_type: "Utility type",
    filter_all: "All",
    units_kwh: "kWh",
    units_m3: "m³",
    units_mbps: "Mbps",
    units_min: "min",
    units_thb: "THB",

    // Form
    form_title: "Submit meter reading",
    form_sub: "Record a new utility meter reading. A photo of the meter is required.",
    form_utility_type: "Utility type",
    form_meter: "Meter",
    form_reading_date: "Reading date",
    form_previous: "Previous reading",
    form_current: "Current reading",
    form_calc_usage: "Calculated usage",
    form_notes: "Notes (optional)",
    form_notes_ph: "Anything unusual? e.g. meter was reset, leak detected…",
    form_photo: "Meter photograph",
    form_photo_help: "Take a clear, well-lit photo. Required.",
    form_photo_drop: "Drop a photo here, or",
    form_photo_browse: "browse files",
    form_photo_camera: "Use camera",
    form_save_draft: "Save draft",
    form_submit: "Submit reading",
    form_submitted: "Reading submitted",
    form_submitted_sub: "Saved to Google Sheets · image uploaded to Drive folder /Verena/Utility-Meters/2026",

    // Analytics
    an_title: "Analytics",
    an_sub: "Forecast bills, compare buildings, spot anomalies.",
    an_rate: "Rate per unit",
    an_rate_help: "Edit per-unit rate to recalculate bills",
    an_estimated_bill: "Estimated bill, this month",
    an_total_consumption: "Total consumption",
    an_yoy: "Year over year",
    an_compare: "Compare buildings",
    an_compare_sub: "Electricity consumption · last 6 months",
    an_anomalies: "Anomalies detected",
    an_anomalies_sub: "Readings flagged for review",

    // Users
    us_title: "Users",
    us_sub: "Manage who can access and administer Verena Utility Records.",
    us_invite: "Invite user",
    us_col_name: "Name",
    us_col_email: "Email",
    us_col_role: "Role",
    us_col_team: "Team",
    us_col_last: "Last active",
    role_admin: "Admin",
    role_user: "Staff",
    role_viewer: "Viewer",

    // Utility settings
    ut_title: "Utility settings",
    ut_sub: "Configure utility types and physical meters across all Verena sites.",
    ut_types: "Utility types",
    ut_types_sub: "Categories of utilities tracked in the system",
    ut_meters: "Meters",
    ut_meters_sub: "Physical or virtual meters attached to a utility type",
    ut_add_type: "Add type",
    ut_add_meter: "Add meter",
    ut_col_label: "Label",
    ut_col_unit: "Unit",
    ut_col_default_rate: "Default rate",
    ut_col_meter_id: "Meter ID",
    ut_col_location: "Location",
    ut_col_assigned_type: "Type",
    ut_col_last_reading: "Last reading",

    // Misc
    cancel: "Cancel",
    save: "Save",
    edit: "Edit",
    delete: "Delete",
    confirm: "Confirm",
    toast_csv_exported: "CSV exported · utility-records-may-2026.csv",
    toast_user_added: "User invited · email sent",
    toast_settings_saved: "Settings saved",
    logout: "Sign out",
    profile: "Profile",
    help: "Help & support",
    notifications: "Notifications",
  },
  th: {
    brand: "ระบบบันทึกค่าสาธารณูปโภค เวอรีน่า",
    welcome_title: "ยินดีต้อนรับสู่ระบบบันทึกค่าสาธารณูปโภค บริษัทเวอรีน่า",
    welcome_sub: "ระบบภายในสำหรับบันทึก ติดตาม และวิเคราะห์การใช้สาธารณูปโภคของอาคารทั้งหมดของบริษัทเวอรีน่า",
    sign_in: "เข้าสู่ระบบ",
    email: "อีเมลที่ทำงาน",
    password: "รหัสผ่าน",
    forgot: "ลืมรหัสผ่าน?",
    remember: "จดจำการเข้าสู่ระบบ",
    continue: "ดำเนินการต่อ",
    or_sso: "หรือเข้าสู่ระบบด้วย",
    sso_google: "Google Workspace",
    sso_microsoft: "Microsoft 365",
    footer_legal: "© 2026 บริษัท เวอรีน่า จำกัด · ใช้ภายในองค์กรเท่านั้น",

    nav_dashboard: "แดชบอร์ด",
    nav_form: "บันทึกใหม่",
    nav_analytics: "วิเคราะห์ข้อมูล",
    nav_users: "ผู้ใช้งาน",
    nav_utilities: "สาธารณูปโภค",
    nav_settings: "ตั้งค่า",
    nav_section_workspace: "พื้นที่ทำงาน",
    nav_section_admin: "การดูแลระบบ",

    search: "ค้นหารายการ มิเตอร์ หรือผู้ใช้…",
    new_reading: "บันทึกใหม่",
    export_csv: "ส่งออก CSV",

    dash_title: "แดชบอร์ด",
    dash_sub: "ภาพรวมการใช้สาธารณูปโภคของทุกอาคารในเดือนนี้",
    kpi_electricity: "ค่าไฟฟ้า",
    kpi_water: "ค่าน้ำประปา",
    kpi_internet: "ค่าอินเตอร์เน็ต",
    kpi_phone: "ค่าโทรศัพท์",
    kpi_vs_prev: "เทียบกับเดือนที่แล้ว",
    chart_monthly: "การใช้รายเดือน",
    chart_monthly_sub: "12 เดือนล่าสุด · ทุกอาคาร",
    chart_breakdown: "สัดส่วนค่าใช้จ่าย",
    chart_breakdown_sub: "เดือนนี้ · หน่วยเป็นบาท",
    recent_title: "บันทึกล่าสุด",
    recent_sub: "การจดมิเตอร์ที่บันทึกล่าสุดโดยพนักงาน",
    col_date: "วันที่",
    col_meter: "มิเตอร์",
    col_type: "ประเภท",
    col_reading: "ค่าที่อ่าน",
    col_usage: "หน่วยที่ใช้",
    col_submitted_by: "ผู้บันทึก",
    col_status: "สถานะ",
    status_approved: "อนุมัติ",
    status_pending: "รอตรวจ",
    status_review: "ตรวจสอบ",
    filter_month: "เดือน",
    filter_year: "ปี",
    filter_building: "อาคาร",
    filter_type: "ประเภท",
    filter_all: "ทั้งหมด",
    units_kwh: "หน่วย",
    units_m3: "ลบ.ม.",
    units_mbps: "Mbps",
    units_min: "นาที",
    units_thb: "บาท",

    form_title: "บันทึกการจดมิเตอร์",
    form_sub: "บันทึกค่ามิเตอร์ใหม่ จำเป็นต้องแนบรูปถ่ายมิเตอร์",
    form_utility_type: "ประเภทสาธารณูปโภค",
    form_meter: "มิเตอร์",
    form_reading_date: "วันที่จด",
    form_previous: "ค่าที่อ่านครั้งก่อน",
    form_current: "ค่าที่อ่านปัจจุบัน",
    form_calc_usage: "หน่วยที่ใช้ (คำนวณ)",
    form_notes: "หมายเหตุ (ไม่บังคับ)",
    form_notes_ph: "มีสิ่งผิดปกติหรือไม่? เช่น มิเตอร์ถูกรีเซ็ต พบการรั่ว…",
    form_photo: "รูปถ่ายมิเตอร์",
    form_photo_help: "ถ่ายภาพให้ชัดเจน แสงเพียงพอ · จำเป็นต้องแนบ",
    form_photo_drop: "ลากรูปมาวางที่นี่ หรือ",
    form_photo_browse: "เลือกไฟล์",
    form_photo_camera: "ถ่ายภาพ",
    form_save_draft: "บันทึกร่าง",
    form_submit: "ส่งข้อมูล",
    form_submitted: "บันทึกสำเร็จ",
    form_submitted_sub: "บันทึกลง Google Sheets · อัปโหลดรูปไปยังโฟลเดอร์ /Verena/Utility-Meters/2026",

    an_title: "วิเคราะห์ข้อมูล",
    an_sub: "ประมาณการค่าใช้จ่าย เปรียบเทียบอาคาร และค้นหาความผิดปกติ",
    an_rate: "อัตราต่อหน่วย",
    an_rate_help: "แก้ไขอัตราต่อหน่วยเพื่อคำนวณค่าใช้จ่ายใหม่",
    an_estimated_bill: "ค่าใช้จ่ายโดยประมาณ เดือนนี้",
    an_total_consumption: "ปริมาณการใช้รวม",
    an_yoy: "เทียบปีต่อปี",
    an_compare: "เปรียบเทียบอาคาร",
    an_compare_sub: "การใช้ไฟฟ้า · 6 เดือนล่าสุด",
    an_anomalies: "พบความผิดปกติ",
    an_anomalies_sub: "รายการที่ต้องตรวจสอบ",

    us_title: "ผู้ใช้งาน",
    us_sub: "จัดการสิทธิ์การเข้าใช้งานระบบบันทึกค่าสาธารณูปโภค",
    us_invite: "เชิญผู้ใช้",
    us_col_name: "ชื่อ",
    us_col_email: "อีเมล",
    us_col_role: "บทบาท",
    us_col_team: "ทีม",
    us_col_last: "ใช้งานล่าสุด",
    role_admin: "ผู้ดูแลระบบ",
    role_user: "ผู้ใช้",
    role_viewer: "ดูอย่างเดียว",

    ut_title: "ตั้งค่าสาธารณูปโภค",
    ut_sub: "จัดการประเภทสาธารณูปโภคและมิเตอร์ของทุกสถานที่",
    ut_types: "ประเภทสาธารณูปโภค",
    ut_types_sub: "หมวดหมู่ของสาธารณูปโภคที่บันทึกในระบบ",
    ut_meters: "มิเตอร์",
    ut_meters_sub: "มิเตอร์ทางกายภาพหรือเสมือนของสาธารณูปโภคแต่ละประเภท",
    ut_add_type: "เพิ่มประเภท",
    ut_add_meter: "เพิ่มมิเตอร์",
    ut_col_label: "ชื่อ",
    ut_col_unit: "หน่วย",
    ut_col_default_rate: "อัตราเริ่มต้น",
    ut_col_meter_id: "รหัสมิเตอร์",
    ut_col_location: "ที่ตั้ง",
    ut_col_assigned_type: "ประเภท",
    ut_col_last_reading: "ค่าล่าสุด",

    cancel: "ยกเลิก",
    save: "บันทึก",
    edit: "แก้ไข",
    delete: "ลบ",
    confirm: "ยืนยัน",
    toast_csv_exported: "ส่งออก CSV สำเร็จ · utility-records-may-2026.csv",
    toast_user_added: "เชิญผู้ใช้สำเร็จ · ส่งอีเมลแล้ว",
    toast_settings_saved: "บันทึกการตั้งค่าแล้ว",
    logout: "ออกจากระบบ",
    profile: "โปรไฟล์",
    help: "วิธีใช้และการสนับสนุน",
    notifications: "การแจ้งเตือน",
  },
};

window.I18N = I18N;
