(function () {
  const module_lang = {
    "zh-cn": {
      custom_goods_text1: "必填",
      custom_goods_text2: "格式错误",
      custom_goods_text3: "请填写必填数据",
      login_text10: "请输入优惠码",
      shoppingCar_tip_text9: "确定",
      shoppingCar_tip_text12: "使用优惠码",
      shoppingCar_tip_text13: "请输入9位数的优惠码！",
      shoppingCar_tip_text14: "使用成功！",
      goods_text1: "立折",
      goods_text2: "满",
      goods_text3: "减",
      goods_text4: "商品活动折扣金额",
      goods_text5: "请选择活动",
      goods_text6: "不参加活动",
    },
    "en-us": {
      custom_goods_text1: "Required",
      custom_goods_text2: "Format error",
      custom_goods_text3: "Please fill in the required data",
      login_text10: "Please enter the discount code",
      shoppingCar_tip_text9: "Confirm",
      shoppingCar_tip_text12: "Use discount code",
      shoppingCar_tip_text13: "Please enter the 9-digit discount code!",
      shoppingCar_tip_text14: "Successful use!",
      goods_text1: "Instant discount",
      goods_text2: "Full",
      goods_text3: "Reduction",
      goods_text4: "Product activity discount amount",
      goods_text5: "Please select an activity",
      goods_text6: "Do not participate in the activity",
    },
    "zh-hk": {
      custom_goods_text1: "必填",
      custom_goods_text2: "格式錯誤",
      custom_goods_text3: "請填寫必填資料",
      login_text10: "請輸入優惠碼",
      shoppingCar_tip_text9: "確定",
      shoppingCar_tip_text12: "使用優惠碼",
      shoppingCar_tip_text13: "請輸入9位數的優惠碼！",
      shoppingCar_tip_text14: "使用成功！",
      goods_text1: "立折",
      goods_text2: "滿",
      goods_text3: "減",
      goods_text4: "商品活動折扣金額",
      goods_text5: "請選擇活動",
      goods_text6: "不參加活動",
    },
  };
  const DEFAULT_LANG = localStorage.getItem("lang") || "zh-cn";
  window.lang = module_lang[DEFAULT_LANG];
})();
