//! Simplified Chinese UI strings.

use super::Strings;

pub static CN: Strings = Strings {
    status: "状态",
    orders: "订单",
    positions: "持仓",
    markets: "市场",
    quit: "退出",
    txid: "账本",

    balance: "余额",
    wallet: "钱包",
    perps: "合约",
    upnl: "浮动盈亏",
    deposit: "存入",
    withdraw: "取出",
    amt: "金额",

    trade: "交易",
    not_loaded: "未加载",
    notional: "名义价值",
    lev: "杠杆",
    buy: "买入",
    sell: "卖出",
    mkt: "市价",
    lmt: "限价",
    stp: "止损",
    size: "数量",
    px: "价格",
    market_order: "市价单",
    limit_order: "限价单",
    stop_order: "止损市价单",
    close: "平仓",
    set: "确定",
    cancel: "取消",
    confirm: "确认",
    close_position: "平仓",
    cancel_all_orders: "取消所有订单",
    no_position: "无持仓",
    liq: "清算价",

    long_label: "做多",
    short_label: "做空",

    vol: "量",
    oi: "持仓量",
    mark: "标价",
    index_price: "指数",
    funding: "资金费",
    waiting_data: "等待数据\u{2026}",
    asks: "卖单",
    bids: "买单",
    slot: "槽位",
    trader: "交易方",
    depth: "深度",
    bid_abbrev: "买",
    ask_abbrev: "卖",
    no_spread: "无价差",
    microprice_ema: "微价 EMA",

    select: "选择",
    back: "返回",
    view_market: "查看市场",
    close_pos: "平仓",
    close_all: "全平",
    cxl_order: "取消订单",
    cxl_all: "全取消",

    market: "市场",
    side: "方向",
    entry: "开仓价",
    notional_col: "名义",
    pnl: "盈亏",
    liq_col: "清算价",
    lev_col: "杠杆",
    no_open_positions: "无持仓",

    order_type: "类型",
    price: "价格",
    filled: "成交",
    flags: "标志",
    no_open_orders: "无订单",

    pct_change: "涨跌幅",
    leverage: "杠杆",
    vol_24h: "24h量",

    config: "设置",
    rpc_url: "RPC 地址",
    language: "语言",
    clob_orders: "显示 CLOB 挂单",
    clob_orders_note: "占用额外带宽",
    fanout_public_rpc: "公共 RPC 广播",
    fanout_public_rpc_note: "同时发送到 api.mainnet-beta.solana.com",
    skip_order_confirmation: "跳过下单确认",
    skip_order_confirmation_note: "下单时不再询问 [Y/N]",
    skip_preflight: "跳过预检",
    skip_preflight_note: "发送交易时使用 skip_preflight=true",
    cu_price: "CU 价格",
    cu_price_note: "每计算单元的微 lamports",
    cu_limit: "CU 限额 / 仓位",
    cu_limit_note: "每个交易仓位的计算单元",
    cu_default: "<默认>",
    cu_auto: "自动",
    st_cu_price_set: "计算单元价格已设置为",
    st_cu_limit_set: "计算单元限额已设置为",
    st_cu_cleared: "已恢复默认值",
    st_cu_invalid: "数值无效 — 请输入正整数",
    on: "开",
    off: "关",
    save_reconnect: "保存重连",
    edit: "编辑",
    toggle: "切换",
    rpc_default: "<使用环境/默认>",

    quit_confirm: "退出?",

    ledger_title: "账本",
    ledger_col_time: "时间",
    ledger_col_action: "操作",
    ledger_empty: "暂无操作 — 提交交易后将显示在此",
    ledger_copied: "已复制到剪贴板:",
    ledger_copy_failed: "无法复制到剪贴板",

    top_positions_title: "顶级持仓",
    liquidations_title: "强平",
    liq_feed_live: "实时",
    liq_feed_backfilling: "回填中\u{2026}",
    liq_feed_scroll: "滚动",
    liq_feed_open_market: "切换市场",
    liq_feed_waiting: "等待强平\u{2026}",
    top_positions_loading: "正在从链上加载顶级持仓\u{2026}",
    top_positions_empty: "Phoenix 当前无活跃持仓",
    top_positions_rank: "#",
    top_positions_trader: "交易方",
    top_positions_no_trader: "交易方公钥尚未解析 \u{2014} 请稍后再试",
    top_positions_copy_hint: "复制交易方",

    st_loading_ctx: "正在加载 Phoenix 交易环境 — 获取交易所数据\u{2026}",
    st_wallet_disconnected: "钱包已断开 — 按 [w] 重连",
    st_wallet_not_loaded: "钱包未加载 — 按 [w] 连接",
    st_wallet_connected: "钱包已连接",
    st_load_wallet_title: "加载钱包",
    st_load_wallet_action: "加载",
    st_wallet_path_label: "路径、base58 或 [字节,数组]：",
    st_wallet_load_failed: "加载失败：",
    st_ctx_loading: "交易环境仍在加载 — 请稍候再试",
    st_switching_market: "正在切换市场 — 重连中\u{2026}",
    st_lim_cleared: "限价已清除 — 将以市价执行",
    st_lim_must_positive: "限价必须为正数",
    st_invalid_price: "价格无效 — 请输入如 185.50 的数字",
    st_market_mode: "已切换至市价模式",
    st_no_mark_price: "无标记价格 — 按 [e] 设置限价",
    st_enter_price: "请输入限价后按 Enter（Esc 取消）",
    st_enter_stop_price: "请输入止损触发价后按 Enter（Esc 取消）",
    st_stop_cleared: "止损触发价已清除 — 切回市价",
    st_stop_must_positive: "止损触发价必须为正数",
    st_stop_set: "止损触发价已设置为 $",
    st_switched_stop: "已切换至止损市价 @ $",
    st_enter_size: "请输入下单数量后按 Enter（Esc 取消）",
    st_invalid_size: "数量无效 — 请输入如 0.1 的数字",
    st_invalid_amount: "金额无效 — 请输入如 100.00 的数字",
    st_type_deposit: "请输入 USDC 存入金额后按 Enter\u{2026}",
    st_type_withdraw: "请输入 USDC 取出金额后按 Enter\u{2026}",
    st_close_all_yn: "全平所有持仓? (Y/N)",
    st_no_positions: "无持仓可平",
    st_no_positions_matched: "无持仓匹配已知市场配置 — 无法平仓",
    st_no_orders: "无订单可取消",
    st_rpc_unchanged: "RPC 地址未变更",
    st_rpc_cleared: "RPC 地址已清除 — 回退至环境/默认值，重连中\u{2026}",
    st_no_position_to_close: "无持仓可平",
    st_cancelled_close_pos: "已取消：平仓",
    st_cancelled_close_all: "已取消：全平",
    st_cancelled_cancel_all: "已取消：取消所有订单",

    st_switching_to: "正在切换至",
    st_switched_to: "已切换至",
    st_market_switch_failed: "市场切换失败：未找到",
    st_market_switch_failed_suf: "的配置",
    st_wallet_connected_as: "钱包已连接 \u{2014}",
    st_lim_set: "限价已设置为 $",
    st_switched_limit: "已切换至限价 @ $",
    st_switched_limit_hint: "\u{2014} 按 [e] 修改价格",
    st_size_set: "下单数量已设置为",
    st_language_set: "语言已设置为",
    st_clob_set: "CLOB 挂单",
    st_fanout_set: "公共 RPC 广播",
    st_skip_order_confirmation_set: "跳过下单确认",
    st_skip_preflight_set: "跳过预检",
    st_reconnecting: "正在重连至",
    st_failed_save: "配置保存失败：",
    st_cannot_close: "无法平仓",
    st_no_market_cfg: "未找到市场配置",
    st_closing: "正在平仓",
    st_position_s: "个持仓",
    st_order_s: "个订单",
    st_cancelling: "正在取消",
    st_submitting: "正在提交",
    st_submitting_limit: "正在提交限价单",
    st_submitting_stop: "正在提交止损单",
    st_submitting_deposit: "正在提交存入",
    st_submitting_withdraw: "正在提交取出",
    st_confirm: "确认",
    st_confirm_limit: "确认限价",
    st_confirm_stop: "确认止损",
    st_confirm_close: "确认平仓",
    st_confirm_deposit_st: "确认存入",
    st_confirm_withdraw_st: "确认取出",
    st_cancel_order_yn: "取消订单",
    st_cancel_all_yn: "取消全部",
    st_open_orders_yn: "个未成交订单?",
    st_close_by_sym_yn: "平仓",
    st_yn: "(Y/N)",
    st_cancelled: "已取消：",
    st_usdc_deposit_noun: "USDC 存入",
    st_usdc_withdraw_noun: "USDC 取出",

    tx_reduce_only: "（仅减仓）",
    tx_failed_build_params: "订单参数构建失败",
    tx_failed_build_ix: "订单指令构建失败",
    tx_broadcasting: "正在准备交易",
    tx_failed_prepare: "❌ 准备失败",
    tx_awaiting_confirm: "已广播，等待确认中",
    tx_order_confirmed: "✅ 订单已确认：",
    tx_tx_rejected: "❌ 交易已被拒绝",
    tx_order_not_confirmed: "确认仍在等待中",
    tx_order_failed: "❌ 订单失败",
    tx_err_stop_opposite_direction: "止损单方向必须与持仓方向相反",
    tx_err_not_enough_sol: "SOL 不足",
    tx_err_balance_too_low: "余额过低",
    tx_err_order_size_nonzero: "订单数量必须大于零。提交前请先设置非零数量。",
    tx_err_post_only_no_cross: "市场处于仅挂单模式",
    tx_err_isolated_only_cross_margin: "该市场禁用全仓，请使用逐仓",
    tx_err_capability_denied: "交易账户缺少权限。请先在 phoenix.trade 使用邀请码注册。",
    tx_err_trader_frozen: "交易账户已冻结。请在 phoenix.trade 使用邀请码激活。",
    tx_err_withdraw_insufficient_margin: "取款被拒：保证金不足",
    tx_err_insufficient_balance: "余额不足。",
    tx_err_insufficient_funds: "资金不足。",
    tx_err_insufficient_compute_units: "计算单元不足。",
    tx_err_computational_budget_exceeded: "计算预算已超出",
    tx_err_program_failed_to_complete: "程序未完成 — 请核对计算单元与上限",
    tx_err_failed_prefix: "交易失败：",
    tx_flow_deposit: "存入",
    tx_flow_withdraw: "取出",
    tx_failed_build_deposit: "❌ 存入指令构建失败",
    tx_failed_build_withdrawal: "❌ 取出指令构建失败",
    tx_deposit_confirmed: "✅ 已存入",
    tx_withdrawal_confirmed: "✅ 已取出",
    tx_usdc_confirmed: "USDC 已确认！",
    tx_transfer_not_confirmed: "转账确认仍在等待中",
    tx_transfer_failed: "❌ 转账失败",
    tx_building_close_all: "正在构建全平，共",
    tx_not_found_skip: "未找到，跳过",
    tx_close_all_aborted: "全平已中止：无法构建有效平仓指令",
    tx_close_label: "平仓",
    tx_batch: "批次",
    tx_broadcasting_batch: "正在准备批次",
    tx_confirming_batch: "确认批次",
    tx_failed_prepare_batch: "❌ 批次准备失败",
    tx_batch_confirmed_suf: "已确认：",
    tx_batch_rejected_suf: "已被网络拒绝",
    tx_batch_not_confirmed_suf: "确认仍在等待中",
    tx_batch_exec_failed_suf: "链上失败",
    tx_close_all_complete: "✅ 全平完成",
    tx_building_cancel: "正在构建取消，共",
    tx_cancel_aborted: "取消已中止：无法构建有效取消指令",
    tx_cancel_label: "取消",
    tx_cancel_batch: "取消批次",
    tx_broadcasting_cancel_batch: "正在准备取消批次",
    tx_confirming_cancel_batch: "确认取消批次",
    tx_failed_prepare_cancel_batch: "❌ 取消批次准备失败",
    tx_cancel_complete: "✅ 取消完成",

    splash_risk_disclaimer: "永续合约有风险 — 自负风险",

    tx_registering_referral: "🐦‍🔥 正在使用 COSMIC 邀请码注册（10% 手续费折扣）…",
    tx_registered_referral: "🐦‍🔥 已通过 COSMIC 邀请码注册 — 已享 10% 手续费折扣",
    tx_registration_failed: "❌ Phoenix 注册失败",

    referral_modal_title: "自定义邀请码",
    referral_modal_label: "Phoenix 邀请码：",
    referral_modal_action: "注册",
    referral_modal_skip: "跳过",
    referral_modal_help: "留空并按 Esc 跳过，并在 phoenix.trade 自行注册。",
    tx_registering_custom_prefix: "🐦‍🔥 正在使用邀请码注册",
    tx_registered_custom_prefix: "🐦‍🔥 已通过邀请码注册",

    referral_choice_title_prefix: "",
    referral_choice_title_suffix: " 注册",
    referral_choice_intro: "此钱包尚未注册 Phoenix 账户。请选择邀请方式：",
    referral_choice_cosmic: "使用 COSMIC 邀请码 — 10% 手续费折扣 🔥",
    referral_choice_cosmic_note: "Cinder 从 COSMIC 注册钱包的手续费中获得分成。",
    referral_choice_custom: "输入自定义邀请码",
    referral_choice_skip: "跳过 — 不使用邀请码继续",
    referral_choice_nav: "选择",
    referral_choice_action: "确认",
    referral_choice_sticky_note: "Phoenix 的归属一经激活即为永久，之后无法更改。",

    twap: "TWAP",
    twap_order: "配置 TWAP",
    twap_modal_title: "新建 TWAP",
    twap_modal_intro: "将一笔市价单拆分为等间隔的分片。",
    twap_field_market: "市场",
    twap_field_side: "方向",
    twap_field_size: "总量",
    twap_field_total_time: "总时长",
    twap_field_hours: "小时",
    twap_field_mins: "分钟",
    twap_field_secs: "秒",
    twap_unit_hr: "时",
    twap_unit_min: "分钟",
    twap_unit_sec: "秒",
    twap_unit_slices: "片",
    twap_nav_field: "选择字段",
    twap_toggle_side: "切换方向",
    twap_cycle_market: "切换市场",
    twap_start: "开始",
    twap_summary_placeholder: "—",
    twap_err_size: "数量必须为正数",
    twap_err_duration: "总时长必须为正",
    twap_err_too_short: "总时长至少为 1 分钟",
    twap_err_size_too_small: "单片向下取整为零基础手数 \u{2014} 请缩短总时长或增加总量",
    twap_err_no_wallet: "钱包未加载 \u{2014} 启动 TWAP 前请按 [w] 连接钱包",
    twap_started: "🐦‍🔥 TWAP 已启动",
    twap_completed: "🐦‍🔥 TWAP 已完成",
    twap_slice_sent: "TWAP 分片已发送",
    twap_slice_word: "分片",

    bots_title: "机器人",
    bots_empty: "没有运行中的机器人 \u{2014} 按 [t] 切到 TWAP，再按 [Enter] 配置",
    bots_kind: "类型",
    bots_progress: "进度",
    bots_interval: "间隔",
    bots_next: "下一片",
    bots_state: "状态",
    bots_pause_resume: "暂停/继续",
    bots_stop: "停止",
    bots_restart: "重启",
    bots_remove: "移除",
    bots_status_running: "运行中",
    bots_status_paused: "已暂停",
    bots_status_stopped: "已停止",
    bots_status_completed: "已完成",
    bots_paused_status: "TWAP 已暂停",
    bots_resumed_status: "TWAP 已继续",
    bots_stopped_status: "TWAP 已停止",
    bots_restarted_status: "TWAP 已重启",
    bots_removed_status: "TWAP 已移除",
    twap_waiting_market_cfg: "等待市场配置",
    twap_waiting_trader_sync: "等待交易者状态同步",
    twap_waiting_active_market: "切换到此市场以继续分片",
    twap_waiting_wallet: "钱包已断开 \u{2014} 机器人已停止",
    twap_waiting_authority: "已连接其他钱包 \u{2014} 机器人不会触发",
    twap_restart_wallet_mismatch: "重启被拒绝：此机器人由其他钱包创建",
    twap_slice_confirmed: "分片已确认",
    twap_slice_failed: "分片失败",
    twap_slice_unconfirmed: "分片已广播（确认未知）",
    twap_confirm_start: "启动 TWAP？[Y/N]",
    twap_confirm_restart: "重启将再次发送所有分片。继续？[Y/N]",
    twap_confirm_stop: "停止机器人？未发送的分片将不会执行。[Y/N]",
    twap_confirm_remove: "从列表中移除机器人？[Y/N]",
};
