var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/components/eftposPay/locales.ts
var locales_exports = {};
__export(locales_exports, {
  default: () => locales_default
});
module.exports = __toCommonJS(locales_exports);
var locales_default = {
  en: {
    "page.eftpos-pay.text.loading": (mode) => `${mode === "pay" || mode === "fullPay" ? "Payment" : "Refund"} in progress...`,
    "page.eftpos-pay.text.wait": (val, mode) => mode === "pay" || mode === "fullPay" ? `Asked EFTPOS to accept payment for Purchase ${val}` : `Requested EFTPOS to accept the refund for ${val}.`,
    "page.eftpos-pay.text.surcharge": "Waiting for customer to accept surcharge",
    "page.eftpos-pay.text.card": "Waiting for customer to present card",
    "page.eftpos-pay.text.account": "Waiting for customer to select account",
    "page.eftpos-pay.text.pin": "Waiting for customer to enter PIN or sign the receipt",
    "page.eftpos-pay.text.receipt": "Ask customer to sign the receipt",
    "page.eftpos-pay.text.receipt.again.title": "Check signature",
    "page.eftpos-pay.text.receipt.again.text": 'If the signature is correct, click "Accept". If the signature is incorrect, click "Decline".',
    "page.eftpos-pay.text.signature.title": "Confirm decline signature?",
    "page.eftpos-pay.text.signature.text": (mode) => mode === "pay" || mode === "fullPay" ? `Decline will cause payment failure, need to pay again.` : `Decline will cause refund failure; a refund needs to be processed again.`,
    "page.eftpos-pay.text.timedout.title": "Sorry, the request has timed out. ",
    "page.eftpos-pay.text.timedout.text": (mode) => mode === "pay" || mode === "fullPay" ? "Please manually mark the payment result based on the payment status displayed on the card reader, to ensure the accuracy of the transaction." : `Please manually verify the refund result based on the refund status displayed on the card reader to ensure the transaction's accuracy.`,
    "page.eftpos-pay.text.request.title": (mode) => `${mode === "pay" || mode === "fullPay" ? "Payment" : "Refund"} request in progress... `,
    "page.eftpos-pay.text.request.text": (mode) => mode === "pay" || mode === "fullPay" ? "Please manually mark the payment result based on the payment status displayed on the card reader, to ensure the accuracy of the transaction." : `Please manually verify the refund result based on the refund status displayed on the card reader to ensure the transaction's accuracy.`,
    "page.eftpos-pay.text.request.unknown.title": (mode) => `Sorry, an unknown error occurred during the ${mode === "pay" || mode === "fullPay" ? "payment" : "refund"} process. `,
    "page.eftpos-pay.text.request.unknown.text": (mode) => mode === "pay" || mode === "fullPay" ? "Please manually mark the payment result based on the payment status displayed on the card reader, to ensure the accuracy of the transaction." : `Please manually mark the refund result based on the refund status displayed on the card reader, to ensure the accuracy of the transaction.`,
    "page.eftpos-pay.text.interrupted": "EFTPOS device connection interrupted",
    "page.eftpos-pay.text.reconnect": "Attempting to reconnect the EFTPOS ...",
    "page.eftpos-pay.text.waiting.pay": (mode) => mode === "pay" || mode === "fullPay" ? "If you have confirmed the payment status from the EFTPOS, you can press Manual marking buttonto skip." : "If you have confirmed the refund status on the EFTPOS, you can press the Manual Marking button to skip.",
    "page.eftpos-pay.text.restored": "Network connection restored",
    "page.eftpos-pay.text.disconnected": "This iPad network disconnected",
    "page.eftpos-pay.text.waiting.network": "Waiting for network recovery ...",
    "page.eftpos-pay.text.waiting.wifi.title": "Please check your device's network.",
    "page.eftpos-pay.text.waiting.wifi.connection": "1. Check Wi-Fi connection.",
    "page.eftpos-pay.text.waiting.wifi.router": " 2. Restart the router.",
    "page.eftpos-pay.text.waiting.wifi.forget.reconnect": "3. Forget network and reconnect",
    "page.eftpos-pay.text.accept": "Accept",
    "page.eftpos-pay.text.decline": "Decline",
    "page.eftpos-pay.text.manual.marking": "Manual marking",
    "page.eftpos-pay.text.manual.title": "Confirm payment amount",
    "page.eftpos-pay.text.manual.subtitle": (money) => `Amount paid for this transaction:${money}.`,
    "page.eftpos-pay.text.manual.confirm": "Please verify if the payment amount matches the amount on the EFTPOS.",
    "page.eftpos-pay.text.manual.btn.confirm": (money) => `Confirm(${money})`,
    "page.eftpos-pay.text.manual.diff": "If it doesn't match, please enter the actual transaction amount in the input box below.",
    "page.eftpos-pay.text.manual.tip": "Amount tendered (incl. surcharge)",
    "page.eftpos-pay.text.manual.cancel": "Cancel current transaction",
    "page.eftpos-pay.text.manual.print_receipt": "Print Receipt",
    "page.eftpos-pay.text.modify.payment.info": (mode) => mode === "pay" || mode === "fullPay" ? "Modify payment info" : "Modify refund information",
    "page.eftpos-pay.text.successful": (mode) => `${mode === "pay" || mode === "fullPay" ? "Payment" : "Refund"} successful`,
    "page.eftpos-pay.text.failed": (mode) => `${mode === "pay" || mode === "fullPay" ? "Payment" : "Refund"} failed`,
    "page.eftpos-pay.text.confirm": "Confirm",
    "page.eftpos-pay.text.confirm.decline": "Confirm decline",
    "page.eftpos-pay.text.back": "Back",
    "page.eftpos-pay.text.cancel": "Cancel",
    "page.eftpos-pay.text.waiting.processing": "Waiting for the processing",
    "page.eftpos-pay.text.waiting.signature": "Waiting for you to check signature",
    "page.eftpos-pay.text.waiting.decline": "Waiting for decline",
    "page.eftpos-pay.text.processing": "Processing",
    "page.eftpos-pay.text.transaction.processing": "Transaction in progress",
    "page.eftpos-pay.text.retry": "Retry",
    "page.eftpos-pay.text.sure": "Sure",
    "page.eftpos-pay.text.device": "Please select device",
    "page.eftpos-pay.text.leave": "Please do not leave this page",
    "page.eftpos-pay.text.latest.success": "A Successful Payment Detected for This Order!",
    "page.eftpos-pay.text.latest.amount": "Amount",
    "page.eftpos-pay.text.latest.surcharge": "Surcharge",
    "page.eftpos-pay.text.latest.time": "Time",
    "page.eftpos-pay.text.latest.confirm": "Confirm",
    "page.eftpos-pay.text.amount.to.pay": "Amount to pay",
    "page.eftpos-pay.text.surcharge.percentage": "Percentage",
    "page.eftpos-pay.text.surcharge.fixed": "Fixed",
    "page.eftpos-pay.text.surcharge.percentage-fixed": "Surcharge = Percentage + Fixed",
    "page.eftpos-pay.text.surcharge.edit.title": "Edit payment surcharge",
    // 自定义
    "page.eftpos-pay.text.input.title": (name) => `Amount to pay on ${name}`,
    "page.eftpos-pay.text.amount.cash.left.pay.paid": (money) => `${money} left to be paid`,
    "page.eftpos-pay.text.surcharge.edit.actual.pay": "Actual Pay",
    "page.eftpos-pay.text.surcharge.edit.inc.surcharge": "Inc. Surcharge",
    "page.eftpos-pay.text.surcharge.edit.rate": "Rate",
    "page.eftpos-pay.text.surcharge.edit.surcharge": "Edit Surcharge",
    "page.eftpos-pay.text.transaction.end": "Transaction end",
    "page.eftpos-pay.text.transaction.user.declined.title": "Signature declined",
    "page.eftpos-pay.text.transaction.user.declined.text": "The transaction failed due to signature decline.",
    "page.eftpos-pay.text.transaction.user.config.title": "Configuration Parameter Error",
    "page.eftpos-pay.text.transaction.user.config.text": "Sorry, please check if the configuration parameters in the device settings are filled in correctly.",
    "page.eftpos-pay.text.transaction.back.declined.title": "Transaction Declined",
    "page.eftpos-pay.text.transaction.back.declined.text": "We're sorry, the bank has declined this transaction. Please try another card.",
    "page.eftpos-pay.text.transaction.fail": "Transaction failed.",
    "page.eftpos-pay.text.transaction.fail.timeout": "Transaction timeout.",
    "page.eftpos-pay.text.transaction.pay.fail.timeout": "Transaction timeout.",
    "page.eftpos-pay.text.transaction.fail.terminal.title": "EFTPOS busy",
    "page.eftpos-pay.text.transaction.fail.terminal": "The EFTPOS terminal is temporarily unavailable due to processing another transaction.",
    "page.eftpos-pay.text.transaction.fail.cancel.title": "Cancels transaction",
    "page.eftpos-pay.text.transaction.fail.cancel": "EFTPOS cancels transaction..",
    "page.eftpos-pay.text.transaction.fail.socket": "EFTPOS device connection failed.",
    "page.eftpos-pay.text.transaction.eftpos.fail": "EFTPOS device connection interrupted",
    "page.eftpos-pay.text.transaction.eftpos.fail.title": "Please check your device",
    "page.eftpos-pay.text.transaction.eftpos.fail.power": "1. Check the device power.",
    "page.eftpos-pay.text.transaction.eftpos.fail.device": "2. Check if the device is turned on.",
    "page.eftpos-pay.text.transaction.eftpos.fail.network": "3. Check the device network.",
    "page.eftpos-pay.text.transaction.eftpos.fail.if": (mode) => mode === "pay" || mode === "fullPay" ? "If you have confirmed the payment status of this order, please click on Manual marking." : "If you have confirmed the refund status of this order, please click on Manual Marking.",
    "page.eftpos-pay.text.transaction.eftpos.fail.other": "Payment issue detected. Please print the receipt and contact staff for assistance.",
    "page.eftpos-pay.text.application": "Waiting for customer to select application",
    "page.eftpos-pay.text.approved": "Approved",
    "page.eftpos-pay.text.device.no.title": "No devices added yet. Please add devices to proceed.",
    "page.eftpos-pay.text.device.no.add": "To add devices:",
    "page.eftpos-pay.text.device.no.web": `Admin Panel: Settings > Payment > EFTPOS > Click 'Manage' next to the vendor > Add Device`,
    "page.eftpos-pay.text.device.no.terminal": `Terminal: Settings > EFTPOS > Click 'Manage' next to the vendor > Add Device`,
    "page.eftpos-pay.text.waiting.decline.signature": " Waiting for the decline signature",
    "page.eftpos-pay.text.unknown.title": (mode) => `Mark ${mode === "pay" || mode === "fullPay" ? "payment" : "refund"} status`,
    "page.eftpos-pay.text.unknown.text": (mode) => `Sorry, an unknown error occurred during the ${mode === "pay" || mode === "fullPay" ? "payment" : "refund"} process. Please manually mark the status of this ${mode === "pay" || mode === "fullPay" ? "payment" : "refund"}`,
    "page.eftpos-pay.text.reconnecting": "Reconnecting",
    "page.eftpos-pay.text.reconnect.network": "Reconnect network",
    "page.eftpos-pay.text.network.disconnected": "Network disconnected",
    "page.eftpos-pay.text.not.connected": "The network is not connected",
    "page.eftpos-pay.text.tyro-btn": (key) => {
      return key;
    },
    "page.eftpos-pay.text.tyro": (key) => {
      return key;
    }
  },
  "zh-CN": {
    "page.eftpos-pay.text.loading": (mode) => `${mode === "pay" || mode === "fullPay" ? "支付" : "退款"}进行中...`,
    "page.eftpos-pay.text.wait": (val, mode) => mode === "pay" || mode === "fullPay" ? `等待EFTPOS接受${val}的付款` : `请求EFTPOS接受${val}的退款。`,
    "page.eftpos-pay.text.surcharge": "等待客户确认支付手续费",
    "page.eftpos-pay.text.card": "等待客户出示卡片",
    "page.eftpos-pay.text.account": "等待客户选择账户",
    "page.eftpos-pay.text.pin": "等待客户输入密码或签名",
    "page.eftpos-pay.text.receipt": "请客户在收据上签名",
    "page.eftpos-pay.text.receipt.again.title": "确认客户签名",
    "page.eftpos-pay.text.receipt.again.text": "如果签名正确，请点击“接受”。如果签名错误，请点击“拒绝”。",
    "page.eftpos-pay.text.signature.title": "确认拒绝签名？",
    "page.eftpos-pay.text.signature.text": (mode) => mode === "pay" || mode === "fullPay" ? "拒绝将导致支付失败，需重新支付。" : "拒绝将导致退款失败；需要重新退款",
    "page.eftpos-pay.text.timedout.title": "抱歉，请求超时了。",
    "page.eftpos-pay.text.timedout.text": (mode) => mode === "pay" || mode === "fullPay" ? "请您根据刷卡机上的支付状态，手动标记支付结果，以确保交易的准确性。" : "请根据显示在刷卡机上的退款状态，手动标记退款结果，以确保交易准确性。",
    "page.eftpos-pay.text.request.title": (mode) => `${mode === "pay" || mode === "fullPay" ? "支付" : "退款"}请求仍在进行中... `,
    "page.eftpos-pay.text.request.text": (mode) => mode === "pay" || mode === "fullPay" ? "请您根据刷卡机上的支付状态，手动标记支付结果，以确保交易的准确性。" : "请根据显示在刷卡机上的退款状态，手动标记退款结果，以确保交易准确性。",
    "page.eftpos-pay.text.request.unknown.title": (mode) => `抱歉， ${mode === "pay" || mode === "fullPay" ? "支付" : "退款"} 过程中出现了未知错误`,
    "page.eftpos-pay.text.request.unknown.text": (mode) => mode === "pay" || mode === "fullPay" ? "请您根据刷卡机上的支付状态，手动标记支付结果，以确保交易的准确性。" : `请您根据刷卡机上的退款状态，手动标记退款结果，以确保交易的准确性。`,
    "page.eftpos-pay.text.interrupted": "EFTPOS设备连接中断",
    "page.eftpos-pay.text.reconnect": "正在尝试重新连接EFTPOS。。。",
    "page.eftpos-pay.text.waiting.pay": (mode) => mode === "pay" || mode === "fullPay" ? "如果您已经从EFTPOS确认了付款状态，您可以按手动标记按钮跳过。" : "如果您已确认了EFTPOS上的退款状态，您可以按下手动标记按钮跳过。",
    "page.eftpos-pay.text.restored": "网络连接已恢复",
    "page.eftpos-pay.text.disconnected": "此iPad网络已断开连接",
    "page.eftpos-pay.text.waiting.network": "正在等待网络恢复...",
    "page.eftpos-pay.text.waiting.wifi.title": "请检查设备网络。",
    "page.eftpos-pay.text.waiting.wifi.connection": "1. 检查Wi-Fi连接。",
    "page.eftpos-pay.text.waiting.wifi.router": "2. 重启路由器。",
    "page.eftpos-pay.text.waiting.wifi.forget.reconnect": "3. 忘记网络并重新连接",
    "page.eftpos-pay.text.accept": "接受",
    "page.eftpos-pay.text.decline": "拒绝",
    "page.eftpos-pay.text.manual.marking": "手动标记",
    "page.eftpos-pay.text.manual.title": "确认支付金额",
    "page.eftpos-pay.text.manual.subtitle": (money) => `此次付款金额：${money}。`,
    "page.eftpos-pay.text.manual.confirm": "请检查付款金额是否与刷卡机上的金额一致。",
    "page.eftpos-pay.text.manual.btn.confirm": (money) => `确认(${money})`,
    "page.eftpos-pay.text.manual.diff": "如不一致请在下方输入框内输入真实的交易金额。",
    "page.eftpos-pay.text.manual.tip": "实付金额（含附加费）",
    "page.eftpos-pay.text.manual.cancel": "取消当前交易",
    "page.eftpos-pay.text.manual.print_receipt": "打印收据",
    "page.eftpos-pay.text.modify.payment.info": (mode) => mode === "pay" || mode === "fullPay" ? "修改支付信息" : "修改退款信息",
    "page.eftpos-pay.text.successful": (mode) => `${mode === "pay" || mode === "fullPay" ? "支付" : "退款"}成功`,
    "page.eftpos-pay.text.failed": (mode) => `${mode === "pay" || mode === "fullPay" ? "支付" : "退款"}失败`,
    "page.eftpos-pay.text.confirm": "确认",
    "page.eftpos-pay.text.confirm.decline": "确认拒绝",
    "page.eftpos-pay.text.back": "返回",
    "page.eftpos-pay.text.cancel": "取消",
    "page.eftpos-pay.text.waiting.processing": "等待处理中",
    "page.eftpos-pay.text.waiting.signature": "等待您检查签名",
    "page.eftpos-pay.text.waiting.decline": "等待拒绝",
    "page.eftpos-pay.text.processing": "处理中",
    "page.eftpos-pay.text.transaction.processing": "交易进行中",
    "page.eftpos-pay.text.retry": "重试",
    "page.eftpos-pay.text.sure": "确定",
    "page.eftpos-pay.text.device": "请选择设备",
    "page.eftpos-pay.text.leave": "请不要离开此页面",
    "page.eftpos-pay.text.latest.success": "检测到此订单有一笔交易已支付成功！",
    "page.eftpos-pay.text.latest.amount": "交易金额",
    "page.eftpos-pay.text.latest.surcharge": "手续费",
    "page.eftpos-pay.text.latest.time": "交易时间",
    "page.eftpos-pay.text.latest.confirm": "确认",
    "page.eftpos-pay.text.amount.to.pay": "剩余待支付金额",
    "page.eftpos-pay.text.surcharge.percentage": "百分比",
    // Percentage
    "page.eftpos-pay.text.surcharge.fixed": "固定金额",
    // Fixed
    "page.eftpos-pay.text.surcharge.percentage-fixed": "支付手续费=百分比+固定金额",
    // Surcharge = Percentage + Fixed
    "page.eftpos-pay.text.surcharge.edit.title": "编辑支付手续费",
    // Edit Payment Surcharge
    "page.eftpos-pay.text.input.title": (name) => `使用${name || ""}支付的金额`,
    "page.eftpos-pay.text.amount.cash.left.pay.paid": (money) => `还需支付 ${money}`,
    "page.eftpos-pay.text.surcharge.edit.actual.pay": "实际支付",
    // Actual Pay
    "page.eftpos-pay.text.surcharge.edit.inc.surcharge": "包含手续费",
    // Inc. Surcharge
    "page.eftpos-pay.text.surcharge.edit.rate": "费率",
    // Rate
    "page.eftpos-pay.text.surcharge.edit.surcharge": "编辑手续费",
    // Edit Surcharge
    "page.eftpos-pay.text.transaction.end": "交易结束",
    "page.eftpos-pay.text.transaction.user.declined.title": "签名被拒绝",
    "page.eftpos-pay.text.transaction.user.declined.text": "由于签名被拒绝，此交易失败。",
    "page.eftpos-pay.text.transaction.user.config.title": "配置参数错误",
    "page.eftpos-pay.text.transaction.user.config.text": "抱歉，请检查设备设置中的配置参数是否填写正确。",
    "page.eftpos-pay.text.transaction.back.declined.title": "交易被拒绝",
    "page.eftpos-pay.text.transaction.back.declined.text": "很抱歉，银行拒绝了此次交易。请更换其他卡片进行尝试。",
    "page.eftpos-pay.text.transaction.fail": "交易失败",
    "page.eftpos-pay.text.transaction.fail.timeout": "交易等待超时",
    "page.eftpos-pay.text.transaction.pay.fail.timeout": "交易请求超时",
    "page.eftpos-pay.text.transaction.fail.terminal.title": "刷卡机繁忙",
    "page.eftpos-pay.text.transaction.fail.terminal": "由于正在处理另一笔交易，EFTPOS终端暂时不可用。",
    "page.eftpos-pay.text.transaction.fail.cancel.title": "取消交易",
    "page.eftpos-pay.text.transaction.fail.cancel": "EFTPOS终端取消交易。",
    "page.eftpos-pay.text.transaction.fail.socket": "刷卡机设备连接失败",
    "page.eftpos-pay.text.transaction.eftpos.fail": "EFTPOS 设备连接中断",
    "page.eftpos-pay.text.transaction.eftpos.fail.title": "请检查您的刷卡机设备。",
    "page.eftpos-pay.text.transaction.eftpos.fail.power": "1. 检查设备电源",
    "page.eftpos-pay.text.transaction.eftpos.fail.device": "2. 检查设备是否开机",
    "page.eftpos-pay.text.transaction.eftpos.fail.network": "3. 检查设备网络",
    "page.eftpos-pay.text.transaction.eftpos.fail.if": (mode) => mode === "pay" || mode === "fullPay" ? "如果您已确认此交易的付款状态，请点击手动标记" : "如果您已确认此订单的退款状态，请点击手动标记。",
    "page.eftpos-pay.text.transaction.eftpos.fail.other": "刷卡机支付出现问题，请打印收据后联系店员处理。",
    "page.eftpos-pay.text.application": "等待客户选择应用",
    "page.eftpos-pay.text.approved": "已接受",
    "page.eftpos-pay.text.device.no.title": "您还没有添加任何设备。请添加设备后使用",
    "page.eftpos-pay.text.device.no.add": "添加设备方式:",
    "page.eftpos-pay.text.device.no.web": `管理后台：设置 > 收款 > EFTPOS > 确认厂商点击“管理” > 添加设备`,
    "page.eftpos-pay.text.device.no.terminal": `Terminal：设置 > EFTPOS > 确认厂商点击“管理” > 添加设备`,
    "page.eftpos-pay.text.waiting.decline.signature": " 等待拒绝签名",
    "page.eftpos-pay.text.unknown.title": (mode) => `标记${mode === "pay" || mode === "fullPay" ? "支付" : "退款"}状态`,
    "page.eftpos-pay.text.unknown.text": (mode) => `抱歉，${mode === "pay" || mode === "fullPay" ? "支付" : "退款"}过程中出现了未知错误。请您手动标记此${mode === "pay" || mode === "fullPay" ? "支付" : "退款"}的状态。`,
    "page.eftpos-pay.text.reconnecting": "连接中",
    "page.eftpos-pay.text.reconnect.network": "重连网络",
    "page.eftpos-pay.text.network.disconnected": "网络断开连接",
    "page.eftpos-pay.text.not.connected": "当前网络未连接",
    "page.eftpos-pay.text.tyro-btn": (key) => {
      if (key === "YES") {
        return "是";
      }
      if (key === "NO") {
        return "否";
      }
      if (key === "OK") {
        return "好的";
      }
      if (key === "RETRY") {
        return "重试";
      }
      if (key === "Retrying...") {
        return "重试";
      }
      if (key === "QUIT") {
        return "退出";
      }
      return key;
    },
    "page.eftpos-pay.text.tyro": (key) => {
      if (key === "Initiating...") {
        return "初始化中...";
      }
      if (key === "Retrying...") {
        return "重试";
      }
      if (key === "REVERSED") {
        return "已撤销";
      }
      if (key === "APPROVED") {
        return "已批准";
      }
      if (key === "DECLINED") {
        return "已拒绝";
      }
      if (key === "Select account") {
        return "请选择账户";
      }
      if (key === "Enter PIN") {
        return "请输入密码";
      }
      if (key.includes("Swipe card. Purchase:")) {
        return key.replace(/^(Swipe card. Purchase)/i, "请刷卡。购买金额");
      }
      if (key === "APPROVED W/ SIGNATURE. Signature OK?") {
        return "请确认签名？";
      }
      if (key === "Sending answer 'NO'...") {
        return "拒绝处理中，请等待...";
      }
      if (key === "Sending answer 'YES'...") {
        return "处理中，请等待...";
      }
      if (key === "Cancel this transaction") {
        return "取消此交易？";
      }
      if (key.includes("Connection lost. Attempting to recover")) {
        return "连接丢失，正在尝试恢复";
      }
      if (key === 'Please perform the "Authorise POS" function on your terminal') {
        return "请在您的EFTPOS上执行“授权POS”功能";
      }
      if (key.includes("Processing transaction - please wait")) {
        return "交易处理中, 请等待...";
      }
      if (key.includes(
        "Transaction could not be processed (410). Void transaction via terminal if necessary"
      )) {
        return "交易无法处理。必要时可以通过刷卡机作废交易。";
      }
      if (key.includes("Invalid transaction details")) {
        return key.replace(/^(Invalid transaction details)/i, "交易详细信息无效");
      }
      if (key === "Tyro system not ready (202). Please try again.") {
        return "Tyro系统未就绪（202）。请重试。";
      }
      if (key === "Querying terminal...") {
        return "正在查询终端... ";
      }
      if (key === "Transaction could not be processed (202). Void transaction via terminal if necessary.") {
        return "无法处理交易（202）。请通过终端撤销交易。";
      }
      if (key === "Transaction could not be processed (403). Void transaction via terminal if necessary.") {
        return "无法处理交易（403）。请通过终端撤销交易。";
      }
      if (key === "Transaction could not be processed (400). Void transaction via terminal if necessary.") {
        return "无法处理交易（400）。请通过终端撤销交易。";
      }
      if (key === "Transaction could not be processed (404). Void transaction via terminal if necessary.") {
        return "无法处理交易（404）。请通过终端撤销交易。";
      }
      if (key === "Transaction could not be processed (502). Void transaction via terminal if necessary.") {
        return "无法处理交易（502）。请通过终端撤销交易。";
      }
      if (key === "Transaction could not be processed (503). Void transaction via terminal if necessary.") {
        return "无法处理交易（503）。请通过终端撤销交易。";
      }
      if (key === "Transaction could not be processed (504). Void transaction via terminal if necessary.") {
        return "无法处理交易（504）。请通过终端撤销交易。";
      }
      if (key === "Connection to terminal lost (404). Check terminal connection.") {
        return "终端设备连接丢失（404）。请检查设备连接";
      }
      if (key === "Connection to terminal lost (502). Check terminal connection.") {
        return "终端设备连接丢失（502）。请检查设备连接";
      }
      if (key === "Connection to terminal lost (504). Check terminal connection.") {
        return "终端设备连接丢失（504）。请检查设备连接";
      }
      if (key === "Connection to terminal lost (404). Check connection and try again(404).") {
        return "终端设备连接丢失。请检查设备连接并重试（404）";
      }
      if (key === "Transaction could not be processed (410).") {
        return "无法处理交易（410）。";
      }
      if (key === "Continuing last transaction...") {
        return "继续进行上次交易";
      }
      if (key === "Enter PIN or press SIGN") {
        return "请输入密码或签名";
      }
      if (key === "TRANSACTION CANCELLED") {
        return "交易已取消";
      }
      if (key === "Reversing transaction") {
        return "正在撤销交易...";
      }
      if (key === "POS is not paired with a terminal") {
        return [
          "POS未与EFTPOS配对。",
          "请先配对后再发起支付。"
        ];
      }
      if (key === "Terminal is busy processing another transaction (503)") {
        return [
          "交易繁忙，刷卡机正在处理另一笔交易。",
          "请在刷卡机上处理完成上一笔交易后再次发起支付。"
        ];
      }
      if (key === "DECLINED. Print customer copy?") {
        return "已拒绝。是否打印客户副本？";
      }
      if (key === "APPROVED. Print customer copy?" || key === "Approved. Print customer copy?") {
        return "已批准。是否打印客户副本？";
      }
      if (key === "Please answer this question with one of the following option/s") {
        return "请使用以下选项之一回答此问题";
      }
      return key;
    }
  },
  "zh-HK": {
    "page.eftpos-pay.text.loading": (mode) => `${mode === "pay" || mode === "fullPay" ? "支付" : "退款"}進行中...`,
    "page.eftpos-pay.text.wait": (val, mode) => mode === "pay" || mode === "fullPay" ? `等待EFTPOS接受${val}的付款` : `請求EFTPOS接受${val}的退款。`,
    "page.eftpos-pay.text.surcharge": "等待客户確認支付手續費",
    "page.eftpos-pay.text.card": "等待客户出示卡片",
    "page.eftpos-pay.text.account": "等待客户選擇賬户",
    "page.eftpos-pay.text.pin": "等待客户輸入密碼或簽名",
    "page.eftpos-pay.text.receipt": "請客户在收據上簽名",
    "page.eftpos-pay.text.receipt.again.title": "確認客户簽名",
    "page.eftpos-pay.text.receipt.again.text": "如果簽名正確，請點擊“接受”。如果簽名錯誤，請點擊“拒絕”。",
    "page.eftpos-pay.text.signature.title": "確認拒絕簽名？",
    "page.eftpos-pay.text.signature.text": (mode) => mode === "pay" || mode === "fullPay" ? "拒絕將導致支付失敗，需重新支付。" : "拒絕將導致退款失敗；需要重新退款",
    "page.eftpos-pay.text.timedout.title": "抱歉，請求超時了。",
    "page.eftpos-pay.text.timedout.text": (mode) => mode === "pay" || mode === "fullPay" ? "請您根據刷卡機上的支付狀態，手動標記支付結果，以確保交易的準確性。" : "請根據顯示在刷卡機上的退款狀態，手動標記退款結果，以確保交易準確性。",
    "page.eftpos-pay.text.request.title": (mode) => `${mode === "pay" || mode === "fullPay" ? "支付" : "退款"}請求仍在進行中... `,
    "page.eftpos-pay.text.request.text": (mode) => mode === "pay" || mode === "fullPay" ? "請您根據刷卡機上的支付狀態，手動標記支付結果，以確保交易的準確性。" : "請根據顯示在刷卡機上的退款狀態，手動標記退款結果，以確保交易準確性。",
    "page.eftpos-pay.text.request.unknown.title": (mode) => `抱歉， ${mode === "pay" || mode === "fullPay" ? "支付" : "退款"} 过程中出现了未知错误`,
    "page.eftpos-pay.text.request.unknown.text": (mode) => mode === "pay" || mode === "fullPay" ? "請您根據刷卡機上的支付狀態，手動標記支付結果，以確保交易的準確性。" : `請您根據刷卡機上的退款狀態，手動標記退款結果，以確保交易的準確性。`,
    "page.eftpos-pay.text.interrupted": "EFTPOS設備連接中斷",
    "page.eftpos-pay.text.reconnect": "正在嘗試重新連接EFTPOS。。。",
    "page.eftpos-pay.text.waiting.pay": (mode) => mode === "pay" || mode === "fullPay" ? "如果您已經從EFTPOS確認了付款狀態，您可以按手動標記按鈕跳過。" : "如果您已確認了EFTPOS上的退款狀態，您可以按下手動標記按鈕跳過。",
    "page.eftpos-pay.text.restored": "網絡連接已恢復",
    "page.eftpos-pay.text.disconnected": "此iPad網絡已斷開連接",
    "page.eftpos-pay.text.waiting.network": "正在等待網絡恢復...",
    "page.eftpos-pay.text.waiting.wifi.title": "請檢查設備網絡。",
    "page.eftpos-pay.text.waiting.wifi.connection": "1. 檢查Wi-Fi連接。",
    "page.eftpos-pay.text.waiting.wifi.router": "2. 重啓路由器。",
    "page.eftpos-pay.text.waiting.wifi.forget.reconnect": "3. 忘記網絡並重新連接",
    "page.eftpos-pay.text.accept": "接受",
    "page.eftpos-pay.text.decline": "拒絕",
    "page.eftpos-pay.text.manual.marking": "手動標記",
    "page.eftpos-pay.text.manual.title": "確認支付金額",
    "page.eftpos-pay.text.manual.subtitle": (money) => `此次付款金額：${money}。`,
    "page.eftpos-pay.text.manual.confirm": "請檢查付款金額是否與刷卡機上的金額一致。",
    "page.eftpos-pay.text.manual.btn.confirm": (money) => `確認(${money})`,
    "page.eftpos-pay.text.manual.diff": "如不一致請在下方輸入框內輸入真實的交易金額。",
    "page.eftpos-pay.text.manual.tip": "實付金額（含附加費）",
    "page.eftpos-pay.text.manual.cancel": "取消當前交易",
    "page.eftpos-pay.text.manual.print_receipt": "打印收據",
    "page.eftpos-pay.text.modify.payment.info": (mode) => mode === "pay" || mode === "fullPay" ? "修改支付信息" : "修改退款信息",
    "page.eftpos-pay.text.successful": (mode) => `${mode === "pay" || mode === "fullPay" ? "支付" : "退款"}成功`,
    "page.eftpos-pay.text.failed": (mode) => `${mode === "pay" || mode === "fullPay" ? "支付" : "退款"}失敗`,
    "page.eftpos-pay.text.confirm": "確認",
    "page.eftpos-pay.text.confirm.decline": "確認拒絕",
    "page.eftpos-pay.text.back": "返回",
    "page.eftpos-pay.text.cancel": "取消",
    "page.eftpos-pay.text.waiting.processing": "等待處理中",
    "page.eftpos-pay.text.waiting.signature": "等待您檢查簽名",
    "page.eftpos-pay.text.waiting.decline": "等待拒絕",
    "page.eftpos-pay.text.processing": "處理中",
    "page.eftpos-pay.text.transaction.processing": "交易進行中",
    "page.eftpos-pay.text.retry": "重試",
    "page.eftpos-pay.text.sure": "確定",
    "page.eftpos-pay.text.device": "請選擇設備",
    "page.eftpos-pay.text.leave": "請不要離開此頁面",
    "page.eftpos-pay.text.latest.success": "檢測到此訂單有一筆交易已支付成功！",
    "page.eftpos-pay.text.latest.amount": "交易金額",
    "page.eftpos-pay.text.latest.surcharge": "手續費",
    "page.eftpos-pay.text.latest.time": "交易時間",
    "page.eftpos-pay.text.latest.confirm": "確認",
    "page.eftpos-pay.text.amount.to.pay": "剩餘待支付金額",
    "page.eftpos-pay.text.surcharge.percentage": "百分比",
    // Percentage
    "page.eftpos-pay.text.surcharge.fixed": "固定金額",
    // Fixed
    "page.eftpos-pay.text.surcharge.percentage-fixed": "支付手續費=百分比+固定金額",
    // Surcharge = Percentage + Fixed
    "page.eftpos-pay.text.surcharge.edit.title": "編輯支付手續費",
    // Edit Payment Surcharge
    "page.eftpos-pay.text.input.title": (name) => `使用${name || ""} 支付的金額`,
    "page.eftpos-pay.text.amount.cash.left.pay.paid": (money) => `還需支付 ${money} `,
    "page.eftpos-pay.text.surcharge.edit.actual.pay": "實際支付",
    // Actual Pay
    "page.eftpos-pay.text.surcharge.edit.inc.surcharge": "包含手續費",
    // Inc. Surcharge
    "page.eftpos-pay.text.surcharge.edit.rate": "費率",
    // Rate
    "page.eftpos-pay.text.surcharge.edit.surcharge": "編輯手續費",
    // Edit Surcharge
    "page.eftpos-pay.text.transaction.end": "交易結束",
    "page.eftpos-pay.text.transaction.user.declined.title": "簽名被拒絕",
    "page.eftpos-pay.text.transaction.user.declined.text": "由於簽名被拒絕，此交易失敗。",
    "page.eftpos-pay.text.transaction.user.config.title": "配置參數錯誤",
    "page.eftpos-pay.text.transaction.user.config.text": "抱歉，請檢查設備設置中的配置參數是否填寫正確。",
    "page.eftpos-pay.text.transaction.back.declined.title": "交易被拒絕",
    "page.eftpos-pay.text.transaction.back.declined.text": "很抱歉，銀行拒絕了此次交易。請更換其他卡片進行嘗試。",
    "page.eftpos-pay.text.transaction.fail": "交易失敗",
    "page.eftpos-pay.text.transaction.fail.timeout": "交易等待超時",
    "page.eftpos-pay.text.transaction.pay.fail.timeout": "交易請求超時",
    "page.eftpos-pay.text.transaction.fail.terminal.title": "刷卡機繁忙",
    "page.eftpos-pay.text.transaction.fail.terminal": "由於正在處理另一筆交易，EFTPOS終端暫時不可用。",
    "page.eftpos-pay.text.transaction.fail.cancel.title": "取消交易",
    "page.eftpos-pay.text.transaction.fail.cancel": "EFTPOS終端取消交易。",
    "page.eftpos-pay.text.transaction.fail.socket": "刷卡機設備連接失敗",
    "page.eftpos-pay.text.transaction.eftpos.fail": "EFTPOS 設備連接中斷",
    "page.eftpos-pay.text.transaction.eftpos.fail.title": "請檢查您的刷卡機設備。",
    "page.eftpos-pay.text.transaction.eftpos.fail.power": "1. 檢查設備電源",
    "page.eftpos-pay.text.transaction.eftpos.fail.device": "2. 檢查設備是否開機",
    "page.eftpos-pay.text.transaction.eftpos.fail.network": "3. 檢查設備網絡",
    "page.eftpos-pay.text.transaction.eftpos.fail.if": (mode) => mode === "pay" || mode === "fullPay" ? "如果您已確認此交易的付款狀態，請點擊手動標記" : "如果您已確認此訂單的退款狀態，請點擊手動標記。",
    "page.eftpos-pay.text.transaction.eftpos.fail.other": "刷卡機支付出現問題，請打印收據後聯繫店員處理。",
    "page.eftpos-pay.text.application": "等待客户選擇應用",
    "page.eftpos-pay.text.approved": "已接受",
    "page.eftpos-pay.text.device.no.title": "您還沒有添加任何設備。請添加設備後使用",
    "page.eftpos-pay.text.device.no.add": "添加設備方式:",
    "page.eftpos-pay.text.device.no.web": `管理後台：設置 > 收款 > EFTPOS > 確認廠商點擊“管理” > 添加設備`,
    "page.eftpos-pay.text.device.no.terminal": `Terminal：設置 > EFTPOS > 確認廠商點擊“管理” > 添加設備`,
    "page.eftpos-pay.text.waiting.decline.signature": " 等待拒絕簽名",
    "page.eftpos-pay.text.unknown.title": (mode) => `標記${mode === "pay" || mode === "fullPay" ? "支付" : "退款"}狀態`,
    "page.eftpos-pay.text.unknown.text": (mode) => `抱歉，${mode === "pay" || mode === "fullPay" ? "支付" : "退款"}過程中出現了未知錯誤。請您手動標記此${mode === "pay" || mode === "fullPay" ? "支付" : "退款"}的狀態。`,
    "page.eftpos-pay.text.reconnecting": "連接中",
    "page.eftpos-pay.text.reconnect.network": "重連網絡",
    "page.eftpos-pay.text.network.disconnected": "網絡斷開連接",
    "page.eftpos-pay.text.not.connected": "當前網絡未連接",
    "page.eftpos-pay.text.tyro-btn": (key) => {
      if (key === "YES") {
        return "是";
      }
      if (key === "NO") {
        return "否";
      }
      if (key === "OK") {
        return "好的";
      }
      if (key === "RETRY") {
        return "重試";
      }
      if (key === "Retrying...") {
        return "重試";
      }
      if (key === "QUIT") {
        return "退出";
      }
      return key;
    },
    "page.eftpos-pay.text.tyro": (key) => {
      if (key === "Initiating...") {
        return "初始化中...";
      }
      if (key === "Retrying...") {
        return "重試";
      }
      if (key === "REVERSED") {
        return "已撤銷";
      }
      if (key === "APPROVED") {
        return "已批准";
      }
      if (key === "DECLINED") {
        return "已拒絕";
      }
      if (key === "Select account") {
        return "請選擇賬户";
      }
      if (key === "Enter PIN") {
        return "請輸入密碼";
      }
      if (key.includes("Swipe card. Purchase:")) {
        return key.replace(/^(Swipe card. Purchase)/i, "請刷卡。購買金額");
      }
      if (key === "APPROVED W/ SIGNATURE. Signature OK?") {
        return "請確認簽名？";
      }
      if (key === "Sending answer 'NO'...") {
        return "拒絕處理中，請等待...";
      }
      if (key === "Sending answer 'YES'...") {
        return "處理中，請等待...";
      }
      if (key === "Cancel this transaction") {
        return "取消此交易？";
      }
      if (key.includes("Connection lost. Attempting to recover")) {
        return "連接丟失，正在嘗試恢復";
      }
      if (key === 'Please perform the "Authorise POS" function on your terminal') {
        return "請在您的EFTPOS上執行“授權POS”功能";
      }
      if (key.includes("Processing transaction - please wait")) {
        return "交易處理中, 請等待...";
      }
      if (key.includes(
        "Transaction could not be processed (410). Void transaction via terminal if necessary"
      )) {
        return "交易無法處理。必要時可以通過刷卡機作廢交易。";
      }
      if (key.includes("Invalid transaction details")) {
        return key.replace(/^(Invalid transaction details)/i, "交易詳細信息無效");
      }
      if (key === "Tyro system not ready (202). Please try again.") {
        return "Tyro系統未就緒（202）。請重試。";
      }
      if (key === "Querying terminal...") {
        return "正在查詢終端... ";
      }
      if (key === "Transaction could not be processed (202). Void transaction via terminal if necessary.") {
        return "無法處理交易（202）。請通過終端撤銷交易。";
      }
      if (key === "Transaction could not be processed (403). Void transaction via terminal if necessary.") {
        return "無法處理交易（403）。請通過終端撤銷交易。";
      }
      if (key === "Transaction could not be processed (400). Void transaction via terminal if necessary.") {
        return "無法處理交易（400）。請通過終端撤銷交易。";
      }
      if (key === "Transaction could not be processed (404). Void transaction via terminal if necessary.") {
        return "無法處理交易（404）。請通過終端撤銷交易。";
      }
      if (key === "Transaction could not be processed (502). Void transaction via terminal if necessary.") {
        return "無法處理交易（502）。請通過終端撤銷交易。";
      }
      if (key === "Transaction could not be processed (503). Void transaction via terminal if necessary.") {
        return "無法處理交易（503）。請通過終端撤銷交易。";
      }
      if (key === "Transaction could not be processed (504). Void transaction via terminal if necessary.") {
        return "無法處理交易（504）。請通過終端撤銷交易。";
      }
      if (key === "Connection to terminal lost (404). Check terminal connection.") {
        return "終端設備連接丟失（404）。請檢查設備連接";
      }
      if (key === "Connection to terminal lost (502). Check terminal connection.") {
        return "終端設備連接丟失（502）。請檢查設備連接";
      }
      if (key === "Connection to terminal lost (504). Check terminal connection.") {
        return "終端設備連接丟失（504）。請檢查設備連接";
      }
      if (key === "Connection to terminal lost (404). Check connection and try again(404).") {
        return "終端設備連接丟失。請檢查設備連接並重試（404）";
      }
      if (key === "Transaction could not be processed (410).") {
        return "無法處理交易（410）。";
      }
      if (key === "Continuing last transaction...") {
        return "繼續進行上次交易";
      }
      if (key === "Enter PIN or press SIGN") {
        return "請輸入密碼或簽名";
      }
      if (key === "TRANSACTION CANCELLED") {
        return "交易已取消";
      }
      if (key === "Reversing transaction") {
        return "正在撤銷交易...";
      }
      if (key === "POS is not paired with a terminal") {
        return [
          "POS未與EFTPOS配對。",
          "請先配對後再發起支付。"
        ];
      }
      if (key === "Terminal is busy processing another transaction (503)") {
        return [
          "交易繁忙，刷卡機正在處理另一筆交易。",
          "請在刷卡機上處理完成上一筆交易後再次發起支付。"
        ];
      }
      if (key === "DECLINED. Print customer copy?") {
        return "已拒絕。是否打印客户副本？";
      }
      if (key === "APPROVED. Print customer copy?" || key === "Approved. Print customer copy?") {
        return "已批准。是否打印客户副本？";
      }
      if (key === "Please answer this question with one of the following option/s") {
        return "請使用以下選項之一回答此問題";
      }
      return key;
    }
  }
};
