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
+16
View File
@@ -1170,6 +1170,10 @@ const locale = {
'trading-assistant.stopStrategy': 'Stop Strategy',
'trading-assistant.editStrategy': 'Edit Strategy',
'trading-assistant.deleteStrategy': 'Delete Strategy',
'trading-assistant.startAll': 'Start All',
'trading-assistant.stopAll': 'Stop All',
'trading-assistant.deleteAll': 'Delete All',
'trading-assistant.symbolCount': 'symbols',
'trading-assistant.status.running': 'Running',
'trading-assistant.status.stopped': 'Stopped',
'trading-assistant.status.error': 'Error',
@@ -1202,7 +1206,9 @@ const locale = {
'trading-assistant.form.testConnection': 'Test Connection',
'trading-assistant.form.strategyName': 'Strategy Name',
'trading-assistant.form.symbol': 'Trading Pair',
'trading-assistant.form.symbols': 'Trading Pairs (Multi-select)',
'trading-assistant.form.symbolHint': 'Symbol format depends on the selected market',
'trading-assistant.form.symbolsHint': 'Select multiple pairs to create strategies for each',
'trading-assistant.form.symbolHintCrypto': 'Crypto: use trading pairs like BTC/USDT',
'trading-assistant.form.symbolHintGeneral': 'Enter the symbol for the selected market (e.g. 600519, AAPL, EURUSD).',
'trading-assistant.form.initialCapital': 'Initial Capital',
@@ -1312,6 +1318,14 @@ const locale = {
'trading-assistant.messages.loadIndicatorsFailed': 'Failed to load indicator list, please try again later',
'trading-assistant.messages.spotLimitations': 'Spot trading has been automatically set to long only with 1x leverage',
'trading-assistant.messages.autoFillApiConfig': 'Auto-filled API configuration for this exchange from history',
'trading-assistant.messages.batchCreateSuccess': 'Successfully created {count} strategies',
'trading-assistant.messages.batchStartSuccess': 'Successfully started {count} strategies',
'trading-assistant.messages.batchStartFailed': 'Failed to start strategies',
'trading-assistant.messages.batchStopSuccess': 'Successfully stopped {count} strategies',
'trading-assistant.messages.batchStopFailed': 'Failed to stop strategies',
'trading-assistant.messages.batchDeleteSuccess': 'Successfully deleted {count} strategies',
'trading-assistant.messages.batchDeleteFailed': 'Failed to delete strategies',
'trading-assistant.messages.batchDeleteConfirm': 'Are you sure you want to delete {count} strategies in group "{name}"? This action cannot be undone.',
'trading-assistant.placeholders.selectIndicator': 'Please select an indicator',
'trading-assistant.placeholders.selectExchange': 'Please select an exchange',
'trading-assistant.placeholders.selectMarketCategory': 'Please select market category',
@@ -1320,6 +1334,7 @@ const locale = {
'trading-assistant.placeholders.inputPassphrase': 'Please enter Passphrase',
'trading-assistant.placeholders.inputStrategyName': 'Please enter strategy name',
'trading-assistant.placeholders.selectSymbol': 'Please select trading pair',
'trading-assistant.placeholders.selectSymbols': 'Please select trading pairs (multi-select)',
'trading-assistant.placeholders.inputSymbol': 'Please enter symbol',
'trading-assistant.placeholders.selectTimeframe': 'Please select timeframe',
'trading-assistant.placeholders.selectKlinePeriod': 'Please select K-line period',
@@ -1341,6 +1356,7 @@ const locale = {
'trading-assistant.validation.testConnectionFailed': 'Connection test failed, please check the configuration and test again',
'trading-assistant.validation.strategyNameRequired': 'Please enter strategy name',
'trading-assistant.validation.symbolRequired': 'Please select trading pair',
'trading-assistant.validation.symbolsRequired': 'Please select at least one trading pair',
'trading-assistant.validation.initialCapitalRequired': 'Please enter initial capital',
'trading-assistant.validation.leverageRequired': 'Please enter leverage',
'trading-assistant.validation.emailInvalid': 'Invalid email address',
+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': '时间',
+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': '時間',