Files
clawpanel/src/locales/modules/gateway.js
晴天 985d263dc6 feat: i18n 11 languages + website update + fix #139 #140 #141
i18n:
- Add 9 new locale files (ja/ko/de/es/fr/pt/ru/vi/zh-TW)
- Add multilingual README files for all 11 languages
- Add locale helper, index, and modular translation system
- Add translation generation scripts

Website (docs/index.html):
- Replace 公益AI接口 branding with 晴辰云AI接口
- Remove OpenClaw 独立安装包 promotion block
- Update SEO meta tags (description, keywords, OG, Twitter, JSON-LD)
- Add 11-language README links to footer
- Update 元宝派 link to new URL

Bug fixes:
- fix(cron): delivery format mode:'push' → mode:'announce', remove invalid 'to' field (fixes #141)
- fix(cron): allow single-channel users to select delivery channel
- fix(cron): preserve delivery field in job state for editing
- fix(models): add 'ollama' as recognized API type, prevent overwriting native ollama config (fixes #140)
- fix(models): skip /v1 append for ollama native API baseUrl
- fix(assistant): normalize 'google-generative-ai' consistently, add ollama hints
- fix(version): use CLI path classification for source detection on Windows (fixes #139)
- fix(version): default to 'official' instead of 'chinese' when source unknown
- fix(version): reorder npm global package check based on active CLI
2026-03-24 22:31:11 +08:00

56 lines
6.8 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { _ } from '../helper.js'
export default {
title: _('Gateway 配置', 'Gateway Config', 'Gateway 設定', 'Gateway', 'Gateway', 'Gateway', 'Gateway', 'Gateway', 'Gateway', 'Gateway', 'Gateway'),
desc: _('Gateway 是 AI 模型的统一入口,所有应用通过它来调用模型服务', 'Gateway is the unified entry for AI models. All apps call model services through it.', 'Gateway 是 AI 模型的統一入口,所有應用通過它來呼叫模型服務', 'OpenClaw Gateway サービスの設定と管理', 'OpenClaw Gateway 서비스 설정 및 관리', 'Cấu hình và quản lý Gateway', 'Configurar y gestionar Gateway', 'Configurar e gerenciar Gateway', 'Настройка и управление Gateway', 'Configurer et gérer Gateway', 'Gateway konfigurieren und verwalten'),
saveApply: _('保存并生效', 'Save & Apply', '儲存並生效'),
saveHint: _('修改后点击保存Gateway 会自动重载', 'Click save after changes, Gateway will auto-reload', '修改后点擊儲存Gateway 會自動重載'),
saving: _('保存中...', 'Saving...', '儲存中...', '保存中...', '저장 중...'),
loadFailed: _('加载配置失败', 'Failed to load config', '載入設定失敗'),
portTitle: _('服务端口', 'Service Port', '伺服連接埠'),
portLabel: _('端口号', 'Port', '連接埠號'),
portHint: _('应用通过这个端口连接 Gateway默认 18789一般不需要改', 'Apps connect to Gateway via this port. Default 18789, usually no need to change.', '應用通過这個連接埠連線 Gateway預設 18789一般不需要改'),
accessTitle: _('谁能访问', 'Access Control', '誰能訪問'),
localOnly: _('仅本机使用', 'Local Only', '僅本機使用'),
localOnlyDesc: _('只有这台电脑上的应用能访问,最安全', 'Only apps on this machine can access, most secure', '只有这台電腦上的應用能訪問,最安全'),
lanShare: _('局域网共享', 'LAN Sharing', '局域網共用'),
lanShareDesc: _('同一网络下的手机、平板等设备也能用', 'Phones, tablets and other devices on the same network can also use it', '同一網路下的手機、平板等設備也能用'),
authTitle: _('安全认证', 'Authentication', '安全認證'),
authMode: _('认证方式', 'Auth Mode', '認證方式', '認証モード', '인증 모드'),
authToken: _('Token 密钥', 'Token', 'Token 金鑰', 'トークン認証'),
authTokenDesc: _('标准认证方式,适合本地和局域网使用', 'Standard auth, suitable for local and LAN use', '標準認證方式,適合本地和局域網使用'),
authPassword: _('密码认证', 'Password', '密碼認證', 'パスワード認証'),
authPasswordDesc: _('Tailscale Funnel 等外网暴露场景必须使用此模式', 'Required for Tailscale Funnel or other public exposure scenarios', 'Tailscale Funnel 等外網暴露場景必須使用此模式'),
tokenLabel: _('访问密钥Token', 'Access Token', '訪問金鑰Token'),
tokenPlaceholder: _('不设置则任何人都能调用', 'Leave empty for no auth', '不設定則任何人都能呼叫'),
tokenHintRef: _('当前 Token 通过环境变量/引用配置,如需改为明文请清空后输入', 'Current token is configured via env variable/reference. Clear to enter plaintext.', '目前 Token 通過環境變數/引用設定,如需改為明文請清空后輸入'),
tokenHintNormal: _('设置后,应用调用时需要带上这个密钥才能通过。如果选了「局域网共享」,强烈建议设置', 'Apps must include this token to authenticate. Strongly recommended if LAN sharing is enabled.', '設定后,應用呼叫時需要帶上这個金鑰才能通過。如果選了「局域網共用」,强烈建議設定'),
passwordLabel: _('密码', 'Password', '密碼'),
passwordPlaceholder: _('设置 Gateway 访问密码', 'Set Gateway access password', '設定 Gateway 訪問密碼'),
passwordHint: _('通过 Tailscale Funnel 暴露 Gateway 时,必须使用密码认证模式', 'Password auth is required when exposing Gateway via Tailscale Funnel', '通過 Tailscale Funnel 暴露 Gateway 時,必須使用密碼認證模式'),
show: _('显示', 'Show', '顯示'),
hide: _('隐藏', 'Hide', '隱藏'),
toolsTitle: _('Agent 工具权限', 'Agent Tool Permissions', 'Agent 工具權限'),
toolsPermission: _('工具调用权限', 'Tool Access', '工具呼叫權限'),
toolsFull: _('完整权限', 'Full Access', '完整權限'),
toolsFullDesc: _('Agent 可使用所有工具(推荐)', 'Agent can use all tools (recommended)', 'Agent 可使用所有工具(推薦)'),
toolsLimited: _('受限模式', 'Limited Mode'),
toolsLimitedDesc: _('仅允许安全工具,禁用文件/命令操作', 'Only safe tools allowed, file/command ops disabled', '僅允許安全工具,停用檔案/命令操作'),
toolsNone: _('禁用工具', 'Disabled', '停用工具'),
toolsNoneDesc: _('Agent 只能对话,不能调用任何工具', 'Agent can only chat, cannot use any tools', 'Agent 只能對話,不能呼叫任何工具'),
sessionsLabel: _('会话可见性', 'Session Visibility', '對話可见性'),
sessionsAll: _('所有会话可见', 'All sessions visible', '所有對話可见'),
sessionsOwn: _('仅自己的会话', 'Own sessions only', '僅自己的對話'),
sessionsNone: _('不可见', 'Not visible'),
sessionsHint: _('控制 Agent 是否能查看其他会话的上下文', 'Controls whether Agent can see context from other sessions', '控制 Agent 是否能查看其他對話的上下文'),
advancedToggle: _('高级选项', 'Advanced Options', '高级選項'),
tailscaleTitle: _('Tailscale 组网', 'Tailscale Network', 'Tailscale 組網'),
tailscaleLabel: _('Tailscale 地址', 'Tailscale Address', 'Tailscale 位址'),
tailscalePlaceholder: _('例如 100.x.x.x:18789', 'e.g. 100.x.x.x:18789'),
tailscaleHint: _('如果你用 Tailscale 虚拟局域网,填上地址后远程设备就能通过它访问 Gateway。不用可以留空', 'If using Tailscale VPN, fill in the address so remote devices can access Gateway through it. Leave empty if not used.', '如果你用 Tailscale 虛擬局域網,填上位址后遠程設備就能通過它訪問 Gateway。不用可以留空'),
configSaved: _('配置已保存,正在重载 Gateway...', 'Config saved, reloading Gateway...', '設定已儲存,正在重載 Gateway...'),
reloaded: _('Gateway 已重载,新配置已生效', 'Gateway reloaded, new config is active', 'Gateway 已重載,新設定已生效'),
savedButReloadFailed: _('配置已保存,但重载失败', 'Config saved, but reload failed', '設定已儲存,但重載失敗'),
saveFailed: _('保存失败', 'Save failed', '儲存失敗', '保存失敗', '저장 실패', 'Lưu thất bại', 'Error al guardar', 'Falha ao salvar', 'Ошибка сохранения', 'Échec de la sauvegarde', 'Speichern fehlgeschlagen'),
}