feat(i18n): add missing translations for trading-assistant modal

- Add step2Params and step3Signal translations
- Add execution mode related translations (signal/live)
- Add notification channel translations (browser/email/phone/telegram/discord/webhook)
- Add live trading config translations (savedCredential, credentialName, etc.)
- Add batch operation message translations (batchCreateSuccess, batchStart/Stop/Delete)
- Add placeholders for email, phone, telegram, discord, webhook inputs
- Add validation messages for email and notify channel
- Add strategy group translations (startAll, stopAll, deleteAll, symbolCount)
- Support both zh-CN (Simplified Chinese) and zh-TW (Traditional Chinese)
This commit is contained in:
TIANHE
2026-01-11 22:15:54 +08:00
parent 74138b4cb2
commit e7cb9c6493
8 changed files with 972 additions and 85 deletions
+51
View File
@@ -1079,6 +1079,10 @@ const locale = {
'trading-assistant.stopStrategy': '停止策略',
'trading-assistant.editStrategy': '编辑策略',
'trading-assistant.deleteStrategy': '删除策略',
'trading-assistant.startAll': '全部启动',
'trading-assistant.stopAll': '全部停止',
'trading-assistant.deleteAll': '全部删除',
'trading-assistant.symbolCount': '个币种',
'trading-assistant.status.running': '运行中',
'trading-assistant.status.stopped': '已停止',
'trading-assistant.status.error': '错误',
@@ -1091,6 +1095,8 @@ const locale = {
'trading-assistant.form.step1': '选择指标',
'trading-assistant.form.step2': '交易所配置',
'trading-assistant.form.step3': '策略参数',
'trading-assistant.form.step2Params': '策略参数',
'trading-assistant.form.step3Signal': '信号通知',
'trading-assistant.form.indicator': '选择指标',
'trading-assistant.form.indicatorHint': '只能选择您已购买或创建的技术指标',
'trading-assistant.form.qdtCostHints': '使用策略将消耗QDT,请确保账户有足够的QDT余额',
@@ -1103,7 +1109,10 @@ const locale = {
'trading-assistant.form.testConnection': '测试连接',
'trading-assistant.form.strategyName': '策略名称',
'trading-assistant.form.symbol': '交易对',
'trading-assistant.form.symbols': '交易对(多选)',
'trading-assistant.form.symbolHint': '目前仅支持加密货币交易对',
'trading-assistant.form.symbolHintCrypto': '加密货币:使用BTC/USDT等交易对格式',
'trading-assistant.form.symbolsHint': '选择多个交易对,将自动创建多个策略',
'trading-assistant.form.initialCapital': '投入金额',
'trading-assistant.form.marketType': '市场类型',
'trading-assistant.form.marketTypeFutures': '合约',
@@ -1135,6 +1144,23 @@ const locale = {
'trading-assistant.form.enableAiFilterHint': '启用后,指标信号将经过AI智能过滤,提高交易质量',
'trading-assistant.form.aiFilterPrompt': '自定义提示词',
'trading-assistant.form.aiFilterPromptHint': '为AI过滤提供自定义指令,留空则使用系统默认',
'trading-assistant.form.executionMode': '执行模式',
'trading-assistant.form.executionModeSignal': '仅信号通知',
'trading-assistant.form.executionModeLive': '实盘自动交易',
'trading-assistant.form.liveTradingCryptoOnlyHint': '实盘交易功能仅支持加密货币市场',
'trading-assistant.form.notifyChannels': '通知渠道',
'trading-assistant.form.notifyChannelsHint': '选择信号触发时的通知方式',
'trading-assistant.form.notifyEmail': '邮箱地址',
'trading-assistant.form.notifyPhone': '手机号码',
'trading-assistant.form.notifyTelegram': 'Telegram ID',
'trading-assistant.form.notifyDiscord': 'Discord Webhook',
'trading-assistant.form.notifyWebhook': 'Webhook 地址',
'trading-assistant.form.liveTradingConfigTitle': '实盘交易配置',
'trading-assistant.form.liveTradingConfigHint': '请填写交易所API信息,实盘交易将使用您的API进行真实交易',
'trading-assistant.form.savedCredential': '已保存的凭证',
'trading-assistant.form.savedCredentialHint': '选择已保存的交易所凭证,自动填充API配置',
'trading-assistant.form.saveCredential': '保存此凭证以便下次使用',
'trading-assistant.form.credentialName': '凭证名称',
'trading-assistant.validation.strategyTypeRequired': '请选择策略类型',
'trading-assistant.form.advancedSettings': '高级设置',
'trading-assistant.form.orderMode': '下单模式',
@@ -1183,6 +1209,20 @@ const locale = {
'trading-assistant.messages.loadIndicatorsFailed': '加载指标列表失败,请稍后重试',
'trading-assistant.messages.spotLimitations': '现货交易已自动设置为仅做多、1倍杠杆',
'trading-assistant.messages.autoFillApiConfig': '已自动填充该交易所的历史API配置',
'trading-assistant.messages.batchCreateSuccess': '成功创建 {count} 个策略',
'trading-assistant.messages.batchStartSuccess': '成功启动 {count} 个策略',
'trading-assistant.messages.batchStartFailed': '批量启动策略失败',
'trading-assistant.messages.batchStopSuccess': '成功停止 {count} 个策略',
'trading-assistant.messages.batchStopFailed': '批量停止策略失败',
'trading-assistant.messages.batchDeleteSuccess': '成功删除 {count} 个策略',
'trading-assistant.messages.batchDeleteFailed': '批量删除策略失败',
'trading-assistant.messages.batchDeleteConfirm': '确定要删除策略组"{name}"下的 {count} 个策略吗?此操作不可恢复。',
'trading-assistant.notify.browser': '浏览器通知',
'trading-assistant.notify.email': '邮箱',
'trading-assistant.notify.phone': '短信',
'trading-assistant.notify.telegram': 'Telegram',
'trading-assistant.notify.discord': 'Discord',
'trading-assistant.notify.webhook': 'Webhook',
'trading-assistant.placeholders.selectIndicator': '请选择指标',
'trading-assistant.placeholders.selectExchange': '请选择交易所',
'trading-assistant.placeholders.inputApiKey': '请输入API Key',
@@ -1190,9 +1230,17 @@ const locale = {
'trading-assistant.placeholders.inputPassphrase': '请输入Passphrase',
'trading-assistant.placeholders.inputStrategyName': '请输入策略名称',
'trading-assistant.placeholders.selectSymbol': '请选择交易对',
'trading-assistant.placeholders.selectSymbols': '请选择交易对(支持多选)',
'trading-assistant.placeholders.selectTimeframe': '请选择时间周期',
'trading-assistant.placeholders.selectKlinePeriod': '请选择K线周期',
'trading-assistant.placeholders.inputAiFilterPrompt': '请输入自定义提示词(可选)',
'trading-assistant.placeholders.selectSavedCredential': '请选择已保存的凭证',
'trading-assistant.placeholders.inputEmail': '请输入邮箱地址',
'trading-assistant.placeholders.inputPhone': '请输入手机号码',
'trading-assistant.placeholders.inputTelegram': '请输入Telegram ID或Chat ID',
'trading-assistant.placeholders.inputDiscord': '请输入Discord Webhook地址',
'trading-assistant.placeholders.inputWebhook': '请输入Webhook地址',
'trading-assistant.placeholders.inputCredentialName': '请输入凭证名称(如:我的OKX账户)',
'trading-assistant.validation.indicatorRequired': '请选择指标',
'trading-assistant.validation.exchangeRequired': '请选择交易所',
'trading-assistant.validation.apiKeyRequired': '请输入API Key',
@@ -1203,6 +1251,9 @@ const locale = {
'trading-assistant.validation.testConnectionFailed': '连接测试失败,请检查配置后重新测试',
'trading-assistant.validation.strategyNameRequired': '请输入策略名称',
'trading-assistant.validation.symbolRequired': '请选择交易对',
'trading-assistant.validation.symbolsRequired': '请至少选择一个交易对',
'trading-assistant.validation.emailInvalid': '请输入有效的邮箱地址',
'trading-assistant.validation.notifyChannelRequired': '请至少选择一个通知渠道',
'trading-assistant.validation.initialCapitalRequired': '请输入投入金额',
'trading-assistant.validation.leverageRequired': '请输入杠杆倍数',
'trading-assistant.table.time': '时间',