From dc8a70b14e8d34f4f2f5618466593f49f94d0d7e Mon Sep 17 00:00:00 2001 From: YoVinchen Date: Sun, 25 Jan 2026 19:59:07 +0800 Subject: [PATCH] feat(i18n): add format transform translations Add translations for format transform configuration UI in Chinese, English, and Japanese. --- src/i18n/locales/en.json | 8 +++++++- src/i18n/locales/ja.json | 8 +++++++- src/i18n/locales/zh.json | 8 +++++++- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 9f08e7eda..f5bec251e 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -480,7 +480,13 @@ "useCustomProxy": "Use separate proxy", "proxyConfigDesc": "Configure separate network proxy for this provider. Uses system proxy or global settings when disabled.", "proxyUsername": "Username (optional)", - "proxyPassword": "Password (optional)" + "proxyPassword": "Password (optional)", + "formatTransform": "Format Transform", + "enableFormatTransform": "Enable Transform", + "formatTransformDesc": "Transform requests and responses between different API formats. Useful for providers using OpenAI-compatible interfaces.", + "sourceFormat": "Source Format (Client)", + "targetFormat": "Target Format (Upstream)", + "transformStreaming": "Transform Streaming Responses" }, "codexConfig": { "authJson": "auth.json (JSON) *", diff --git a/src/i18n/locales/ja.json b/src/i18n/locales/ja.json index 029fbc6bc..b7d35f80d 100644 --- a/src/i18n/locales/ja.json +++ b/src/i18n/locales/ja.json @@ -480,7 +480,13 @@ "useCustomProxy": "個別プロキシを使用", "proxyConfigDesc": "このプロバイダーに個別のネットワークプロキシを設定します。無効の場合はシステムプロキシまたはグローバル設定を使用します。", "proxyUsername": "ユーザー名(任意)", - "proxyPassword": "パスワード(任意)" + "proxyPassword": "パスワード(任意)", + "formatTransform": "フォーマット変換", + "enableFormatTransform": "変換を有効化", + "formatTransformDesc": "リクエストとレスポンスを異なる API フォーマット間で変換します。OpenAI 互換インターフェースを使用するプロバイダーに適しています。", + "sourceFormat": "ソースフォーマット(クライアント)", + "targetFormat": "ターゲットフォーマット(上流)", + "transformStreaming": "ストリーミングレスポンスを変換" }, "codexConfig": { "authJson": "auth.json (JSON) *", diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index b83d8fc0b..9fe213438 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -480,7 +480,13 @@ "useCustomProxy": "使用单独代理", "proxyConfigDesc": "为此供应商配置单独的网络代理,不启用时使用系统代理或全局设置。", "proxyUsername": "用户名(可选)", - "proxyPassword": "密码(可选)" + "proxyPassword": "密码(可选)", + "formatTransform": "格式转换", + "enableFormatTransform": "启用转换", + "formatTransformDesc": "将请求和响应在不同 API 格式之间转换。适用于使用 OpenAI 兼容接口的供应商。", + "sourceFormat": "源格式(客户端)", + "targetFormat": "目标格式(上游)", + "transformStreaming": "转换流式响应" }, "codexConfig": { "authJson": "auth.json (JSON) *",