(function () {
  'use strict';

  var translations = {
    en: {
      page_title: 'WeMasterTrade — Get 30% Off Your First Package',

      /* Popup */
      popup_heading: "Don't Leave <span class=\"yellow\">30% Behind</span>",
      popup_sub: "First-time offer — won't show again",
      popup_cta: 'Get Funded Now →',

      /* Navbar */
      nav_login: 'Login',

      /* Hero */
      hero_eyebrow: 'Become a Funded Trader at WeMasterTrade',
      hero_audience: 'FOR NEW TRADERS',
      hero_body: 'Join thousands of traders with WMT capital.<br>Use <strong>NEWUSER30</strong> on your first package.',
      coupon_label: 'Use Code:',
      coupon_copy: 'COPY',
      coupon_copied: '✓ COPIED',
      btn_get_funded: 'Get Funded',
      btn_see_packages: 'See Packages',
      stat_traders: 'Traders Globally',
      stat_payout_guarantee: 'Payout Guarantee',
      stat_payout_year: 'Payout Each Year',
      recent_payout_to: 'Recent Payout to',

      /* Certification */
      cert_badge: 'Certification',
      cert_heading: 'Awards &amp;<br><span class="yellow">Recognition</span>',
      cert_learn_more: 'Learn more ↗',

      /* Traders */
      traders_badge: 'WMT Traders',
      traders_heading: 'Meet <span class="yellow">Successful WMT Traders</span>',
      traders_sub: "Discover the hidden strategies and insights that have fueled our traders’ success on their remarkable trading journey with WeMasterTrade.",

      /* Products */
      pkg_badge: 'Our Package',
      pkg_heading: 'Choose Your Capital Package',
      pkg_sub: 'Select the environment that fits your style. Apply NEWUSER30 at checkout to redeem your 30% discount.',
      btn_try_now: 'Try Now',
      btn_scale_up: 'Scale Up Plan',
      link_faqs: 'FAQs',
      link_free_trial: 'Free Trial',
      tab_instant: 'Instant',
      tab_challenge: 'Challenge',

      /* Product card */
      card_account: 'Account',
      card_cta_instant: 'Get Funded Now',
      card_cta_challenge: 'Start Challenge',
      card_fee: 'One-Time Fee',
      card_fee_challenge: 'One-Time Refundable Fee',
      best_value: '⚡ Best Value',
      feat_profit_target: 'Profit Target',
      feat_daily_loss: 'Daily Loss',
      feat_max_loss: 'Max Loss',
      feat_buying_power: 'Buying Power',
      feat_swap_fee: 'Swap Fee',
      feat_free_swap: 'Free-Swap',
      feat_profit_split: 'Profit Split',
      feat_profit_share: 'Profit Share',
      feat_leverage: 'Leverage',
      feat_reset_disc: 'Reset Discount',

      /* Platforms */
      platform_badge: 'Platform Access',
      platform_heading: 'Trade on Platforms the Pros Actually Use',
      platform_sub: 'Everything you need to trade, invest, and manage your accounts is available on our fully integrated, advanced trading platforms.',
      platform_wmt_desc: 'Your primary web-based system. Manage your accounts, place trades, check performance, and research quickly and securely without downloading anything.',
      platform_mt5_desc: 'Designed for active and professional traders. The MT5 puts the power of an advanced platform in the palm of your hand with multiple indicators and tools.',
      platform_ct_desc: 'Built for serious traders who demand speed and transparency. cTrader offers Level II pricing, advanced charting, and ultra-fast order execution trusted by professionals worldwide.',

      /* Payout */
      payout_badge: 'Payouts',
      payout_heading: 'Fast &amp; Reliable<br><span class="yellow">Payouts</span>',
      payout_sub: "Enjoy hassle-free payouts as a reward for your simulated trading. Because you shouldn’t wait for your money.",
      payout_stat1: 'Avg Payout Time',
      payout_stat2: 'Daily Payout',
      payout_stat3: 'Customer Support',
      payout_bank_title: 'Bank Transfer',
      payout_bank_desc: 'Money in the bank within hours of your request',
      payout_crypto_title: 'Crypto Payouts',
      payout_crypto_desc: 'We support payouts via USDC and other stablecoins',
      payout_card_title: 'Debit / Credit / Prepaid Cards',
      payout_card_desc: 'Use your performance-based rewards directly with our branded Visa / MasterCard / American Express / JCB…',
      payout_soon: 'Coming soon',

      /* Why Us */
      whyus_badge: 'Why Us',
      whyus_heading: '<span class="yellow">Why Use WMT Capital</span><br>Instead of Your Own Money',
      whyus_1_title: 'Save',
      whyus_1_desc: 'If it takes at least 12 months to save $10,000 for a trading account, why not join WMT where we fund you instantly from $10,000 up to $200,000?',
      whyus_2_title: 'Capital',
      whyus_2_desc: 'We remove this concern by allowing you to have a customization trading account size for a better returns. Thanks to our liquidity providers, we can leverage you with buying power from $1 million USD to $100 million USD.',
      whyus_3_title: 'Risk of Loss',
      whyus_3_desc: 'A lot of traders save a lot of money in a long period, trading with own fund can potentially lead to huge loss and un-recover. With WeMasterTrade, your potential losses are covered by us so you can have peace in mind while trading.',
      whyus_4_title: 'Account Setup',
      whyus_4_desc: 'We handle all the technology and account setup for you. All you need is to pay a set up fee, one click for online contract and then start trade right away.',

      /* Testimonials */
      tp_heading: 'Loved by Traders',
      tp_verified: 'Verified',
      reviews_label: 'Showing our 4 & 5 star reviews',

      /* Bottom CTA */
      cta_eyebrow: 'Just starting out?',
      cta_heading: 'Grab 30% off your<br>first package!',
      cta_body: 'Use promo code NEWUSER30 manually at checkout to claim your discount.',
      cta_btn: 'START WITH 30% OFF →',

      /* Support */
      support_badge: 'Need support?',
      support_heading: 'We will <span class="yellow">help you!</span>',
      support_sub: 'Connect WeMasterTrade',
      community_badge: 'Our Community',
      community_heading: 'Do not skip any beat.',
      community_body: 'The Ultimate Trading Community. Join our Discord, Facebook, WhatsApp and Telegram to discuss strategies, get the latest updates, news and more.',
      support_cs_badge: 'Customer Support',
      support_cs_heading: '24/5 Customer Support',
      support_cs_body: 'We provide customer support around the clock 24/5 in multiple languages for our traders around the world.',
      btn_talk_support: 'Talk to support',
      btn_open_faqs: 'Open FAQs',

      /* Footer */
      footer_intro: 'Clients are provided with an account containing virtual funds. Their trading activity on the virtual account is replicated in real-time by our exclusive algorithms to our live firm trading account, generating actual cash flow.',
      footer_risk_heading: 'Risk Disclosure',
      footer_risk_text: "This is not an investment opportunity. You do not deposit any funds for investment. We do not ask for any funds for investment. At no time do you risk your own capital. There are no promises of rewards or returns. Trading contains substantial risk and is not for every investor. An investor could lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing one’s financial security or lifestyle. Only risk capital should be used for trading, and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results.",
      footer_comp_heading: 'Customer Compensate Disclosure',
      footer_comp_text: "All trades presented for customer compensation should be considered hypothetical and should not be expected to be replicated in a simulated trading environment. All accounts in the WeMasterTrade program may represent simulated trading accounts. Payments are collected and facilitated by Diretio Holding Ltd (HE 481457), registered in Cyprus, acting as Payment Agents on behalf of WeMasterTrade, depending on the user’s location and selected payment method. MetaTrader 5 does not provide trading account services to residents of the USA, Israel, Cuba, North Korea, Afghanistan, and some other countries.",
      footer_hypo_heading: 'Hypothetical Performance Closure',
      footer_hypo_text: "Hypothetical performance results have many inherent limitations, some of which are described below. No representation is made that any account will likely achieve performance-based rewards or losses similar to those shown. There are frequently sharp differences between hypothetical performance results and the actual results subsequently achieved by any particular trading program. One of the limitations of hypothetical performance results is that they are generally prepared with the benefit of hindsight. In addition, hypothetical trading does not involve financial risk, and no hypothetical trading record can completely account for the impact of financial risk on actual trading. For example, the ability to withstand losses or to adhere to a particular trading program despite trading losses is a material point, which can also adversely affect actual trading results. There are numerous other factors related to the markets in general or to the implementation of any specific trading program, which cannot be fully accounted for in the preparation of hypothetical performance results, and all of which can adversely affect trading results. Testimonials appearing on this website may not represent other clients or customers and are not a guarantee of future performance or success.",
      footer_complaint_heading: 'Complaint Resolution Process',
      footer_complaint_text: 'If you believe you are entitled to compensation due to a platform error or system malfunction, please contact support@wemastertrade.com within 7 days of the incident. Our team will review and respond within 5 business days. If the complaint is valid, compensation will be processed within 14 business days.',
      footer_complaint_text2: 'Compensation is limited to the value of the service fee paid for the affected account. WeMasterTrade is not liable for losses resulting from market conditions, user error, or third-party service interruptions.',
      footer_restricted_heading: 'Restricted Countries',
      footer_restricted_text: 'WeCopy Fintech Inc does not provide trading accounts service to residents of the Vietnam, USA, Israel, Russia, North Korea, Iran and some other countries.',
      footer_copyright: 'WeMasterTrade. All rights reserved.',
      footer_terms: 'Terms',
      footer_privacy: 'Privacy',
    },

    th: {
      page_title: 'WeMasterTrade — รับส่วนลด 30% สำหรับแพ็คเกจแรกของคุณ',

      /* Popup */
      popup_heading: 'อย่าปล่อยให้ <span class="yellow">ส่วนลด 30%</span> หลุดมือ',
      popup_sub: 'ข้อเสนอสำหรับครั้งแรกเท่านั้น — จะไม่แสดงอีก',
      popup_cta: 'รับทุนเทรดเลย →',

      /* Navbar */
      nav_login: 'เข้าสู่ระบบ',

      /* Hero */
      hero_eyebrow: 'ก้าวสู่การเป็นเทรดเดอร์ที่มีกองทุนสนับสนุนที่ WeMasterTrade',
      hero_audience: 'สำหรับเทรดเดอร์ใหม่',
      hero_body: 'เข้าร่วมกับเทรดเดอร์นับพันด้วยเงินทุนจาก WMT<br>ใช้โค้ด <strong>NEWUSER30</strong> สำหรับแพ็คเกจแรกของคุณ',
      coupon_label: 'ใช้โค้ด:',
      coupon_copy: 'คัดลอก',
      coupon_copied: '✓ คัดลอกแล้ว',
      btn_get_funded: 'รับทุนเทรด',
      btn_see_packages: 'ดูแพ็คเกจ',
      stat_traders: 'เทรดเดอร์ทั่วโลก',
      stat_payout_guarantee: 'รับประกันการจ่ายเงิน',
      stat_payout_year: 'จ่ายเงินต่อปี',
      recent_payout_to: 'จ่ายเงินล่าสุดให้กับ',

      /* Certification */
      cert_badge: 'การรับรอง',
      cert_heading: 'รางวัลและ<br><span class="yellow">การยอมรับ</span>',
      cert_learn_more: 'เรียนรู้เพิ่มเติม ↗',

      /* Traders */
      traders_badge: 'เทรดเดอร์ WMT',
      traders_heading: 'พบกับ <span class="yellow">เทรดเดอร์ WMT ที่ประสบความสำเร็จ</span>',
      traders_sub: 'ค้นพบกลยุทธ์ลับและข้อมูลเชิงลึกที่ขับเคลื่อนความสำเร็จของเทรดเดอร์ของเรา',

      /* Products */
      pkg_badge: 'แพ็คเกจของเรา',
      pkg_heading: 'เลือกแพ็คเกจเงินทุนของคุณ',
      pkg_sub: 'เลือกสภาพแวดล้อมที่เหมาะกับสไตล์ของคุณ ใช้รหัส NEWUSER30 ตอนชำระเงินเพื่อรับส่วนลด 30%',
      btn_try_now: 'ลองเลย',
      btn_scale_up: 'แผนการขยายพอร์ต',
      link_faqs: 'คำถามที่พบบ่อย',
      link_free_trial: 'ทดลองใช้ฟรี',
      tab_instant: 'Instant',
      tab_challenge: 'Challenge',

      /* Product card */
      card_account: 'บัญชี',
      card_cta_instant: 'รับทุนเทรดเลย',
      card_cta_challenge: 'เริ่ม Challenge',
      card_fee: 'ค่าธรรมเนียมครั้งเดียว',
      card_fee_challenge: 'ค่าธรรมเนียมครั้งเดียว (คืนเงินได้)',
      best_value: '⚡ Best Value',
      feat_profit_target: 'เป้าหมายกำไร',
      feat_daily_loss: 'การขาดทุนรายวัน',
      feat_max_loss: 'การขาดทุนสูงสุด',
      feat_buying_power: 'กำลังซื้อ',
      feat_swap_fee: 'ค่าธรรมเนียม Swap',
      feat_free_swap: 'Free-Swap',
      feat_profit_split: 'การแบ่งกำไร',
      feat_profit_share: 'ส่วนแบ่งกำไร',
      feat_leverage: 'เลเวอเรจ',
      feat_reset_disc: 'ส่วนลดรีเซ็ต',

      /* Platforms */
      platform_badge: 'เข้าถึงแพลตฟอร์ม',
      platform_heading: 'เทรดบนแพลตฟอร์มที่มือโปรใช้งานจริง',
      platform_sub: 'ทุกสิ่งที่คุณต้องการสำหรับการเทรด การลงทุน และการจัดการบัญชี มีพร้อมให้ใช้งานบนแพลตฟอร์มการเทรดขั้นสูงที่รวมไว้ในที่เดียว',
      platform_wmt_desc: 'WeMasterTrade Web — ระบบหลักผ่านเว็บ จัดการบัญชี เปิดออเดอร์ ตรวจสอบผลงาน และค้นคว้าข้อมูลได้อย่างรวดเร็วและปลอดภัยโดยไม่ต้องดาวน์โหลดอะไร',
      platform_mt5_desc: 'MetaTrader 5 — ออกแบบสำหรับนักเทรดที่กระตือรือร้นและมืออาชีพ มาพร้อมอินดิเคเตอร์และเครื่องมือหลากหลายในมือถือของคุณ',
      platform_ct_desc: 'cTrader — สร้างมาสำหรับนักเทรดจริงจังที่ต้องการความเร็วและโปร่งใส มี Level II pricing กราฟขั้นสูง และการส่งคำสั่งที่เร็วที่สุด',

      /* Payout */
      payout_badge: 'การจ่ายเงิน',
      payout_heading: 'การจ่ายเงินที่<br><span class="yellow">รวดเร็วและเชื่อถือได้</span>',
      payout_sub: 'เพลิดเพลินกับการจ่ายเงินที่ไร้กังวลเป็นรางวัลสำหรับการเทรดจำลอง เพราะคุณไม่ควรต้องรอเงินของคุณ',
      payout_stat1: 'ระยะเวลาจ่ายเงินเฉลี่ย',
      payout_stat2: 'จ่ายเงินรายวัน',
      payout_stat3: 'ฝ่ายสนับสนุนลูกค้า',
      payout_bank_title: 'โอนผ่านธนาคาร',
      payout_bank_desc: 'เงินเข้าบัญชีภายในไม่กี่ชั่วโมงหลังยื่นคำขอ',
      payout_crypto_title: 'จ่ายผ่านคริปโต',
      payout_crypto_desc: 'รองรับการจ่ายผ่าน USDC และ stablecoin อื่นๆ',
      payout_card_title: 'บัตรเดบิต / เครดิต / เติมเงิน',
      payout_card_desc: 'เร็วๆ นี้ ใช้รางวัลผ่านบัตร Visa / MasterCard / Amex / JCB ของเรา',
      payout_soon: 'เร็วๆ นี้',

      /* Testimonials */
      tp_heading: 'เป็นที่รักของเทรดเดอร์',
      tp_verified: 'ยืนยันแล้ว',
      reviews_label: 'แสดงรีวิว 4 และ 5 ดาวของเรา',

      /* Bottom CTA */
      cta_eyebrow: 'เพิ่งเริ่มต้น?',
      cta_heading: 'รับส่วนลด 30%<br>สำหรับแพ็คเกจแรก!',
      cta_body: 'ใช้รหัสโปรโมชั่น NEWUSER30 ด้วยตนเองตอนชำระเงินเพื่อรับส่วนลด',
      cta_btn: 'เริ่มต้นพร้อมรับส่วนลด 30% →',

      /* Support */
      support_badge: 'ต้องการความช่วยเหลือ?',
      support_heading: 'เรา<span class="yellow">พร้อมช่วยคุณ!</span>',
      support_sub: 'เชื่อมต่อกับ WeMasterTrade',
      community_badge: 'ชุมชนของเรา',
      community_heading: 'อย่าพลาดทุกการเคลื่อนไหว',
      community_body: 'ชุมชนนักเทรดของเรา เชื่อมต่อผ่าน Facebook Group และ LINE เพื่อพูดคุยกลยุทธ์ รับอัปเดตล่าสุด ข่าวสาร และอีกมากมาย',
      support_cs_badge: 'ฝ่ายสนับสนุนลูกค้า',
      support_cs_heading: 'ซัพพอร์ตลูกค้า 24/5',
      support_cs_body: 'เราให้บริการตลอด 24 ชั่วโมง 5 วันต่อสัปดาห์ หลายภาษา สำหรับนักเทรดทั่วโลก',
      btn_talk_support: 'ติดต่อฝ่ายสนับสนุน',
      btn_open_faqs: 'เปิด FAQs',

      /* Footer */
      footer_intro: 'ลูกค้าจะได้รับบัญชีที่มีเงินเสมือนจริง กิจกรรมการเทรดจะถูกจำลองแบบเรียลไทม์โดยอัลกอริทึมของเราไปยังบัญชีเทรดจริงของบริษัท เพื่อสร้างกระแสเงินสดที่แท้จริง',
      footer_risk_heading: 'การเปิดเผยความเสี่ยง',
      footer_risk_text: 'นี่ไม่ใช่โอกาสในการลงทุน คุณไม่ได้ฝากเงินทุนใดๆ เพื่อการลงทุน และเราไม่ได้เรียกขอเงินทุนใดๆ เพื่อการลงทุน คุณไม่มีความเสี่ยงต่อเงินทุนส่วนตัวของคุณไม่ว่าในเวลาใดก็ตาม ไม่มีการให้คำมั่นสัญญาเรื่องผลตอบแทนหรือกำไร การเทรดมีความเสี่ยงสูงและไม่ได้เหมาะสำหรับนักลงทุนทุกคน ผลการดำเนินงานในอดีตไม่ได้เป็นเครื่องบ่งชี้ถึงผลลัพธ์ในอนาคตเสมอไป',
      footer_comp_heading: 'การเปิดเผยการชดเชยลูกค้า',
      footer_comp_text: 'การเทรดทั้งหมดที่นำเสนอเพื่อการชดเชยลูกค้าควรได้รับการพิจารณาว่าเป็นแบบสมมติ บัญชีทั้งหมดในโปรแกรม WeMasterTrade อาจเป็นบัญชีเทรดจำลอง การชำระเงินดำเนินการโดย Diretio Holding Ltd (HE 481457) ซึ่งจดทะเบียนในไซปรัส และทำหน้าที่เป็นตัวแทนการชำระเงินในนามของ WeMasterTrade',
      footer_hypo_heading: 'การเปิดเผยผลการดำเนินงานสมมติ',
      footer_hypo_text: 'ผลการดำเนินงานสมมติมีข้อจำกัดหลายประการ ไม่มีการรับรองว่าบัญชีใดๆ จะบรรลุรางวัลหรือการสูญเสียที่คล้ายคลึงกับที่แสดง บ่อยครั้งมีความแตกต่างอย่างชัดเจนระหว่างผลการดำเนินงานสมมติกับผลลัพธ์จริง คำรับรองที่ปรากฏบนเว็บไซต์นี้อาจไม่ได้เป็นตัวแทนของลูกค้ารายอื่น และไม่ใช่การรับประกันผลลัพธ์หรือความสำเร็จในอนาคต',
      footer_complaint_heading: 'กระบวนการระงับข้อร้องเรียน',
      footer_complaint_text: 'หากคุณเชื่อว่าคุณมีสิทธิ์ได้รับค่าชดเชยอันเนื่องมาจากข้อผิดพลาดของแพลตฟอร์มหรือระบบขัดข้อง โปรดติดต่อ support@wemastertrade.com ภายใน 7 วันนับจากวันที่เกิดเหตุการณ์ ทีมงานจะตรวจสอบและตอบกลับภายใน 5 วันทำการ หากข้อร้องเรียนมีมูลความจริง การชดเชยจะเสร็จสิ้นภายใน 14 วันทำการ',
      footer_complaint_text2: 'การชดเชยจำกัดอยู่เพียงมูลค่าของค่าธรรมเนียมที่ชำระสำหรับบัญชีที่ได้รัปผลกระทบ และ WeMasterTrade จะไม่รับผิดชอบต่อความสูญเสียจากสภาวะตลาด ข้อผิดพลาดของผู้ใช้งาน หรือการขัดข้องของบุคคลภายนอก',
      footer_restricted_heading: 'ประเทศที่ถูกจำกัด',
      footer_restricted_text: 'WeCopy Fintech Inc ไม่ให้บริการบัญชีการเทรดแก่ผู้อยู่อาศัยในเวียดนาม, สหรัฐอเมริกา, อิสราเอล, รัสเซีย, เกาหลีเหนือ, อิหร่าน และบางประเทศอื่น ๆ',
      footer_copyright: 'WeMasterTrade. สงวนลิขสิทธิ์ทั้งหมด.',
      footer_terms: 'เงื่อนไข',
      footer_privacy: 'นโยบายความเป็นส่วนตัว',
    },

    km: {
      page_title: 'WeMasterTrade — ទទួលបានការបញ្ចុះតម្លៃ ៣០% សម្រាប់កញ្ចប់ដំបូងរបស់អ្នក',

      /* Popup */
      popup_heading: 'កុំបណ្តោយឱ្យ <span class="yellow">ការបញ្ចុះតម្លៃ ៣០%</span> កន្លងផុតទៅ',
      popup_sub: 'ការផ្តល់ជូនលើកដំបូង — នឹងមិនបង្ហាញម្តងទៀតទេ',
      popup_cta: 'ទទួលបានដើមទុនជួញដូរឥឡូវនេះ →',

      /* Navbar */
      nav_login: 'ចូល',

      /* Hero */
      hero_eyebrow: 'ក្លាយជា Funded Trader នៅ WeMasterTrade',
      hero_audience: 'សម្រាប់ TRADERS ថ្មី',
      hero_body: 'ចូលរួមជាមួយ Trader រាប់ពាន់នាក់ជាមួយដើមទុន WMT<br>ប្រើប្រាស់កូដ <strong>NEWUSER30</strong> សម្រាប់កញ្ចប់ដំបូងរបស់អ្នក',
      coupon_label: 'ប្រើប្រាស់កូដ៖',
      coupon_copy: 'ចម្លង',
      coupon_copied: '✓ ចម្លងបានហើយ',
      btn_get_funded: 'ទទួលបានដើមទុន',
      btn_see_packages: 'មើលកញ្ចប់សេវាកម្ម',
      stat_traders: 'Trader នៅទូទាំងពិភពលោក',
      stat_payout_guarantee: 'ការធានាការដកប្រាក់',
      stat_payout_year: 'ការទូទាត់ក្នុងមួយឆ្នាំ',
      recent_payout_to: 'ការទូទាត់ថ្មីៗ ជូន',

      /* Certification */
      cert_badge: 'វិញ្ញាបនបត្រ',
      cert_heading: 'រង្វាន់ &amp;<br><span class="yellow">ការទទួលស្គាល់</span>',
      cert_learn_more: 'ស្វែងយល់បន្ថែម ↗',

      /* Traders */
      traders_badge: 'Trader WMT',
      traders_heading: 'ជួបជាមួយ <span class="yellow">អ្នកជួញដូរ WMT ដែលទទួលបានជោគជ័យ</span>',
      traders_sub: 'ស្វែងយល់ពីយុទ្ធសាស្ត្រសម្ងាត់ និងការយល់ដឹងស៊ីជម្រៅដែលបានជួយជំរុញភាពជោគជ័យរបស់អ្នកជួញដូររបស់យើងក្នុងដំណើរជួញដូររបស់ពួកគេជាមួយ WeMasterTrade។',

      /* Products */
      pkg_badge: 'កញ្ចប់សេវាកម្មរបស់យើង',
      pkg_heading: 'ជ្រើសរើសកញ្ចប់ដើមទុនរបស់អ្នក',
      pkg_sub: 'ជ្រើសរើសបរិយាកាសដែលសមស្របនឹងរចនាប័ទ្មរបស់អ្នក។ បញ្ចូលកូដ NEWUSER30 នៅពេលទូទាត់ប្រាក់ ដើម្បីទទួលបានការបញ្ចុះតម្លៃ 30%។',
      btn_try_now: 'សាកល្បងឥឡូវនេះ',
      btn_scale_up: 'ផែនការបង្កើនដើមទុន',
      link_faqs: 'សំណួរដែលសួរញឹកញាប់',
      link_free_trial: 'សាកល្បងដោយឥតគិតថ្លៃ',
      tab_instant: 'Instant',
      tab_challenge: 'Challenge',

      /* Product card */
      card_account: 'គណនី',
      card_cta_instant: 'ទទួលបានដើមទុនឥឡូវ',
      card_cta_challenge: 'ចាប់ផ្ដើម Challenge',
      card_fee: 'ថ្លៃសេវាតែមួយដង',
      card_fee_challenge: 'ថ្លៃសេវាតែមួយដង (អាចសងវិញបាន)',
      best_value: '⚡ Best Value',
      feat_profit_target: 'គោលដៅប្រាក់ចំណេញ',
      feat_daily_loss: 'ការខាតបង់ប្រចាំថ្ងៃ',
      feat_max_loss: 'ការខាតបង់អតិបរមា',
      feat_buying_power: 'ថាមពលទិញ',
      feat_swap_fee: 'ថ្លៃ Swap',
      feat_free_swap: 'Free-Swap',
      feat_profit_split: 'ការចែកចំណែកប្រាក់ចំណេញ',
      feat_profit_share: 'ចំណែកប្រាក់ចំណេញ',
      feat_leverage: 'Leverage',
      feat_reset_disc: 'ការបញ្ចុះតម្លៃ Reset',

      /* Platforms */
      platform_badge: 'ការចូលប្រើ Platform',
      platform_heading: 'ជួញដូរលើ Platform ដែលអ្នកជំនាញប្រើប្រាស់ពិតប្រាកដ',
      platform_sub: 'រាល់អ្វីៗដែលអ្នកត្រូវការដើម្បីជួញដូរ វិនិយោគ និងគ្រប់គ្រងគណនីរបស់អ្នក គឺមាននៅលើ Platform ជួញដូរកម្រិតខ្ពស់ និងពេញលេញរបស់យើង។',
      platform_wmt_desc: 'ប្រព័ន្ធចម្បងនៅលើគេហទំព័ររបស់អ្នក។ គ្រប់គ្រងគណនី បើកការជួញដូរ ពិនិត្យមើលលទ្ធផល និងស្រាវជ្រាវយ៉ាងរហ័ស និងមានសុវត្ថិភាព ដោយមិនចាំបាច់ទាញយកកម្មវិធីអ្វីទាំងអស់។',
      platform_mt5_desc: 'MetaTrader 5 — បង្កើតឡើងសម្រាប់អ្នកជួញដូរដែលមានសកម្មភាព និងប្រកបដោយវិជ្ជាជីវៈ។ ផ្តល់នូវថាមពលនៃ Platform កម្រិតខ្ពស់ ជាមួយនឹង Indicators និងឧបករណ៍ប្រើប្រាស់ជាច្រើន។',
      platform_ct_desc: 'cTrader — បង្កើតឡើងសម្រាប់អ្នកជួញដូរពិតប្រាកដ ដែលត្រូវការល្បឿន និងតម្លាភាព។ ផ្តល់ជូននូវ Level II pricing ក្រាហ្វវិភាគកម្រិតខ្ពស់ និងការអនុវត្តការបញ្ជាទិញយ៉ាងរហ័សបំផុត ដែលត្រូវបានទុកចិត្តដោយអ្នកជំនាញទូទាំងពិភពលោក។',

      /* Payout */
      payout_badge: 'ការដកប្រាក់',
      payout_heading: 'ការដកប្រាក់<br><span class="yellow">រហ័ស និងគួរឱ្យទុកចិត្ត</span>',
      payout_sub: 'រីករាយជាមួយការដកប្រាក់ដោយមិនមានការរំខាន ជាការផ្តល់រង្វាន់សម្រាប់ការជួញដូរសាកល្បងរបស់អ្នក។ ពីព្រោះអ្នកមិនគួររង់ចាំយូរដើម្បីទទួលបានប្រាក់របស់អ្នកនោះទេ។',
      payout_stat1: 'រយៈពេលដកប្រាក់ជាមធ្យម',
      payout_stat2: 'ការដកប្រាក់ប្រចាំថ្ងៃ',
      payout_stat3: 'សេវាគាំទ្រអតិថិជន',
      payout_bank_title: 'ការផ្ទេរតាមធនាគារ',
      payout_bank_desc: 'ប្រាក់នឹងចូលក្នុងគណនីក្នុងរយៈពេលប៉ុន្មានម៉ោងបន្ទាប់ពីការស្នើសុំ',
      payout_crypto_title: 'ការដកប្រាក់តាម Crypto',
      payout_crypto_desc: 'យើងគាំទ្រការដកប្រាក់តាមរយៈ USDC និងប្រភេទ Stablecoin ផ្សេងទៀត',
      payout_card_title: 'កាត Debit / Credit / Prepaid',
      payout_card_desc: 'នឹងមកដល់ក្នុងពេលឆាប់ៗ។ ប្រើប្រាស់រង្វាន់ដោយផ្ទាល់ជាមួយកាត Visa / MasterCard / American Express / JCB…',
      payout_soon: 'នឹងមកដល់ក្នុងពេលឆាប់ៗ',

      /* Testimonials */
      tp_heading: 'ត្រូវបានចូលចិត្តដោយ Trader',
      tp_verified: 'បានផ្ទៀងផ្ទាត់',
      reviews_label: 'បង្ហាញការវាយតម្លៃ 4 និង 5 ផ្កាយរបស់យើង',

      /* Bottom CTA */
      cta_eyebrow: 'ទើបចាប់ផ្ដើមមែនទេ?',
      cta_heading: 'ទទួលបានការបញ្ចុះតម្លៃ ៣០%<br>សម្រាប់កញ្ចប់ដំបូងរបស់អ្នក!',
      cta_body: 'ប្រើប្រាស់កូដ NEWUSER30 នៅពេលបង់ប្រាក់ ដើម្បីទទួលបានការបញ្ចុះតម្លៃ។',
      cta_btn: 'ចាប់ផ្តើមជាមួយការបញ្ចុះតម្លៃ ៣០% →',

      /* Support */
      support_badge: 'ត្រូវការជំនួយ?',
      support_heading: 'យើង<span class="yellow">នឹងជួយអ្នក!</span>',
      support_sub: 'ភ្ជាប់ជាមួយ WeMasterTrade',
      community_badge: 'សហគមន៍របស់យើង',
      community_heading: 'កុំឱ្យរំលងរាល់ព័ត៌មានសំខាន់ៗ',
      community_body: 'សហគមន៍ជួញដូរដ៏អស្ចារ្យបំផុត។ ចូលរួមជាមួយ Discord, Facebook, WhatsApp និង Telegram របស់យើង ដើម្បីពិភាក្សាអំពីយុទ្ធសាស្ត្រ ទទួលបានព័ត៌មានថ្មីៗ និងច្រើនទៀត។',
      support_cs_badge: 'សេវាគាំទ្រអតិថិជន',
      support_cs_heading: 'សេវាគាំទ្រអតិថិជន ២៤/៥',
      support_cs_body: 'យើងផ្តល់សេវាគាំទ្រអតិថិជនពេញ ២៤ ម៉ោងក្នុងមួយថ្ងៃ ៥ ថ្ងៃក្នុងមួយសប្តាហ៍ ជាច្រើនភាសាសម្រាប់អ្នកជួញដូររបស់យើងនៅទូទាំងពិភពលោក។',
      btn_talk_support: 'ទំនាក់ទំនងផ្នែកគាំទ្រ',
      btn_open_faqs: 'បើក FAQs',

      /* Footer */
      footer_intro: 'អតិថិជនត្រូវបានផ្តល់ជូននូវគណនីដែលមានប្រាក់និមិត្ត (virtual funds)។ រាល់សកម្មភាពជួញដូររបស់ពួកគេត្រូវបានចម្លងតាមពេលវេលាជាក់ស្តែងដោយ Algorithms ផ្ទាល់របស់យើងទៅកាន់គណនីជួញដូរផ្ទាល់របស់ក្រុមហ៊ុន ដើម្បីបង្កើតលំហូរសាច់ប្រាក់ពិតប្រាកដ។',
      footer_risk_heading: 'ការជូនដំណឹងអំពីហានិភ័យ',
      footer_risk_text: 'នេះមិនមែនជាឱកាសវិនិយោគទេ។ អ្នកមិនត្រូវដាក់ប្រាក់បញ្ញើណាមួយសម្រាប់ការវិនិយោគឡើយ។ យើងមិនស្នើសុំមូលនិធិណាមួយសម្រាប់ការវិនិយោគទេ។ អ្នកមិនមានហានិភ័យលើដើមទុនផ្ទាល់ខ្លួនរបស់អ្នកនៅពេលណាក៏ដោយ។ មិនមានការសន្យាអំពីការផ្តល់រង្វាន់ ឬផលចំណេញឡើយ។ ការជួញដូរមានហានិភ័យខ្ពស់ ហើយមិនមែនសម្រាប់វិនិយោគិនគ្រប់រូបនោះទេ។ វិនិយោគិនអាចបាត់បង់ប្រាក់ទាំងអស់ ឬច្រើនជាងការវិនិយោគដំបូង។ លទ្ធផលកន្លងមក មិនមែនជាការបញ្ជាក់ច្បាស់លាស់អំពីលទ្ធផលនាពេលអនាគតនោះទេ។',
      footer_comp_heading: 'ការបង្ហាញព័ត៌មានអំពីការសងសំណងជូនអតិថិជន',
      footer_comp_text: 'រាល់ការជួញដូរដែលបានបង្ហាញសម្រាប់ការសងសំណងជូនអតិថិជន គួរតែត្រូវបានចាត់ទុកថាជាការសន្មត (hypothetical) ហើយមិនគួររំពឹងថានឹងត្រូវបានអនុវត្តដូចគ្នាទាំងស្រុងនៅក្នុងបរិយាកាសជួញដូរសាកល្បងនោះទេ។ គណនីទាំងអស់នៅក្នុងកម្មវិធី WeMasterTrade អាចតំណាងឱ្យគណនីជួញដូរសាកល្បង។ ការប្រមូលប្រាក់ និងការសម្របសម្រួលត្រូវបានអនុវត្តដោយក្រុមហ៊ុន Diretio Holding Ltd (HE 481457) ដែលបានចុះបញ្ជីនៅប្រទេសស៊ីប (Cyprus) ដោយធ្វើសកម្មភាពជាភ្នាក់ងារទូទាត់ប្រាក់ក្នុងនាម WeMasterTrade។ MetaTrader 5 មិនផ្តល់សេវាកម្មគណនីជួញដូរដល់អ្នកស្នាក់នៅសហរដ្ឋអាមេរិក, អ៊ីស្រាអែល, គុយបា, កូរ៉េខាងជើង, អាហ្វហ្គានីស្ថាន និងប្រទេសមួយចំនួនទៀតឡើយ។',
      footer_hypo_heading: 'ការបដិសេធអំពីលទ្ធផលនៃការសន្មត',
      footer_hypo_text: 'លទ្ធផលនៃប្រតិបត្តិការសន្មតមានកម្រិតកំណត់ជាច្រើន ដែលក្នុងនោះចំណុចមួយចំនួនត្រូវបានរៀបរាប់ដូចខាងក្រោម។ មិនមានការធានាណាមួយថា គណនីណាមួយនឹងទទួលបានរង្វាន់ ឬការបាត់បង់ស្រដៀងនឹងអ្វីដែលបានបង្ហាញនោះទេ។ ជាញឹកញាប់មានភាពខុសគ្នាខ្លាំងរវាងលទ្ធផលនៃការសន្មត និងលទ្ធផលជាក់ស្តែង។ លើសពីនេះ ការជួញដូរសន្មតមិនពាក់ព័ន្ធនឹងហានិភ័យហិរញ្ញវត្ថុទេ ហើយមិនមានកំណត់ត្រាជួញដូរសន្មតណាមួយអាចឆ្លុះបញ្ចាំងទាំងស្រុងនូវផលប៉ះពាល់នៃហានិភ័យហិរញ្ញវត្ថុលើការជួញដូរជាក់ស្តែងនោះទេ។ សក្ខីកម្ម (Testimonials) ដែលបង្ហាញនៅលើគេហទំព័រនេះ អាចមិនតំណាងឱ្យអតិថិជនផ្សេងទៀត ហើយមិនមែនជាការធានានូវលទ្ធផល ឬភាពជោគជ័យនាពេលអនាគតនោះទេ។',
      footer_complaint_heading: 'ដំណើរការដោះស្រាយបណ្តឹងតវ៉ា',
      footer_complaint_text: 'ប្រសិនបើអ្នកជឿជាក់ថាអ្នកមានសិទ្ធិទទួលបានសំណង ដោយសារកំហុសបច្ចេកទេសនៃ Platform ឬដំណើរការខុសប្រក្រតីនៃប្រព័ន្ធ សូមទាក់ទងមកកាន់ support@wemastertrade.com ក្នុងរយៈពេល ៧ ថ្ងៃ។ ក្រុមការងាររបស់យើងនឹងពិនិត្យ និងឆ្លើយតបវិញក្នុងរយៈពេល ៥ ថ្ងៃនៃថ្ងៃធ្វើការ។ ប្រសិនបើបណ្តឹងតវ៉ាមានសុពលភាព សំណងនឹងត្រូវបានដំណើរការក្នុងរយៈពេល ១៤ ថ្ងៃនៃថ្ងៃធ្វើការ។',
      footer_complaint_text2: 'សំណងត្រូវបានកំណត់ត្រឹមតម្លៃនៃថ្លៃសេវាដែលបានបង់សម្រាប់គណនីដែលរងផលប៉ះពាល់ប៉ុណ្ណោះ។ WeMasterTrade មិនទទួលខុសត្រូវចំពោះការខាតបង់ដែលបណ្តាលមកពីលក្ខខណ្ឌទីផ្សារ, កំហុសរបស់អ្នកប្រើប្រាស់ ឬការរំខានសេវាកម្មពីភាគីទីបីឡើយ។',
      footer_restricted_heading: 'ប្រទេសដែលត្រូវបានរឹតត្បិត',
      footer_restricted_text: 'WeCopy Fintech Inc មិនផ្តល់សេវាកម្មគណនីជួញដូរដល់អ្នកស្នាក់នៅក្នុងប្រទេស វៀតណាម, សហរដ្ឋអាមេរិក, អ៊ីស្រាអែល, រុស្ស៊ី, កូរ៉េខាងជើង, អ៊ីរ៉ង់ និងប្រទេសមួយចំនួនទៀតឡើយ។',
      footer_copyright: 'WeMasterTrade. រក្សាសិទ្ធិគ្រប់យ៉ាង។',
      footer_terms: 'លក្ខខណ្ឌ',
      footer_privacy: 'គោលការណ៍ភាពឯកជន',
    }
  };

  function detect() {
    var p = new URLSearchParams(window.location.search).get('lang');
    if (p && translations[p]) return p;
    var s = localStorage.getItem('wmt_lang');
    if (s && translations[s]) return s;
    return 'en';
  }

  window.currentLang = detect();

  window.t = function (key) {
    var lang = translations[window.currentLang] || translations.en;
    return (key in lang) ? lang[key] : ((key in translations.en) ? translations.en[key] : key);
  };

  window.applyLang = function (lang) {
    if (!translations[lang]) return;
    window.currentLang = lang;
    localStorage.setItem('wmt_lang', lang);
    var url = new URL(window.location.href);
    if (lang === 'en') url.searchParams.delete('lang');
    else url.searchParams.set('lang', lang);
    history.replaceState(null, '', url);

    document.title = window.t('page_title');
    document.documentElement.lang = lang;

    document.querySelectorAll('[data-i18n]').forEach(function (el) {
      el.textContent = window.t(el.dataset.i18n);
    });
    document.querySelectorAll('[data-i18n-html]').forEach(function (el) {
      el.innerHTML = window.t(el.dataset.i18nHtml);
    });
    document.querySelectorAll('.lang-btn').forEach(function (btn) {
      var selected = btn.dataset.lang === lang;
      btn.classList.toggle('active', selected);
      btn.setAttribute('aria-checked', selected ? 'true' : 'false');
    });
    var currentLangLabel = document.getElementById('lang-current-label');
    if (currentLangLabel) currentLangLabel.textContent = lang.toUpperCase();
    document.querySelectorAll('.community-global').forEach(function (link) {
      link.classList.toggle('hidden', lang === 'th');
    });
    document.querySelectorAll('.community-th').forEach(function (link) {
      link.classList.toggle('hidden', lang !== 'th');
    });

    /* Re-render JS-driven sections */
    if (typeof renderTabBar === 'function') renderTabBar();
    if (typeof renderProducts === 'function') renderProducts();
    if (typeof renderReviews === 'function') renderReviews();
    if (typeof renderTrader === 'function') renderTrader(window.traderIndex || 0);
  };

  document.addEventListener('DOMContentLoaded', function () {
    applyLang(window.currentLang);
    document.querySelectorAll('.lang-btn').forEach(function (btn) {
      btn.addEventListener('click', function () { applyLang(btn.dataset.lang); });
    });
  });
}());
