From 0e287a9c93ff8215ac5a174e210cf56add423f77 Mon Sep 17 00:00:00 2001 From: lyzno1 Date: Thu, 18 Sep 2025 13:25:57 +0800 Subject: [PATCH] chore: add missing translations --- web/i18n/en-US/plugin-trigger.ts | 1 + web/i18n/ja-JP/plugin-trigger.ts | 180 +++++++++++++++++++++++++++++ web/i18n/zh-Hans/plugin-trigger.ts | 1 + 3 files changed, 182 insertions(+) create mode 100644 web/i18n/ja-JP/plugin-trigger.ts diff --git a/web/i18n/en-US/plugin-trigger.ts b/web/i18n/en-US/plugin-trigger.ts index a28e33922d..7e45b85615 100644 --- a/web/i18n/en-US/plugin-trigger.ts +++ b/web/i18n/en-US/plugin-trigger.ts @@ -107,6 +107,7 @@ const translation = { configuration: { title: 'Configure Subscription', description: 'Set up your subscription parameters after authorization', + success: 'OAuth configuration successful', }, }, manual: { diff --git a/web/i18n/ja-JP/plugin-trigger.ts b/web/i18n/ja-JP/plugin-trigger.ts new file mode 100644 index 0000000000..43711c9264 --- /dev/null +++ b/web/i18n/ja-JP/plugin-trigger.ts @@ -0,0 +1,180 @@ +const translation = { + subscription: { + title: 'サブスクリプション', + listNum: '{{num}} サブスクリプション', + empty: { + title: 'サブスクリプションがありません', + description: 'イベントの受信を開始するために最初のサブスクリプションを作成してください', + button: '新しいサブスクリプション', + }, + createButton: { + oauth: 'OAuth で新しいサブスクリプション', + apiKey: 'API キーで新しいサブスクリプション', + manual: 'URL を貼り付けて新しいサブスクリプションを作成', + }, + list: { + title: 'サブスクリプション', + addButton: '追加', + tip: 'サブスクリプション経由でイベントを受信', + item: { + enabled: '有効', + disabled: '無効', + credentialType: { + api_key: 'API キー', + oauth2: 'OAuth', + unauthorized: '手動', + }, + actions: { + delete: '削除', + deleteConfirm: { + title: 'サブスクリプションを削除', + content: '「{{name}}」を削除してもよろしいですか?', + contentWithApps: 'このサブスクリプションは {{count}} 個のアプリで使用されています。「{{name}}」を削除してもよろしいですか?', + confirm: '削除', + cancel: 'キャンセル', + }, + }, + status: { + active: 'アクティブ', + inactive: '非アクティブ', + }, + usedByNum: '{{num}} ワークフローで使用中', + noUsed: 'ワークフローで使用されていません', + }, + }, + addType: { + title: 'サブスクリプションを追加', + description: 'トリガーサブスクリプションの作成方法を選択してください', + options: { + apiKey: { + title: 'API キー経由', + description: 'API 認証情報を使用してサブスクリプションを自動作成', + }, + oauth: { + title: 'OAuth 経由', + description: 'サードパーティプラットフォームで認証してサブスクリプションを作成', + }, + manual: { + title: '手動設定', + description: 'URL を貼り付けて新しいサブスクリプションを作成', + tip: 'サードパーティプラットフォームで URL を手動設定', + }, + }, + }, + }, + modal: { + steps: { + verify: '検証', + configuration: '設定', + }, + common: { + cancel: 'キャンセル', + back: '戻る', + next: '次へ', + create: '作成', + verify: '検証', + authorize: '認証', + creating: '作成中...', + verifying: '検証中...', + authorizing: '認証中...', + }, + oauthRedirectInfo: 'このツールプロバイダーのシステムクライアントシークレットが見つからないため、手動設定が必要です。redirect_uri には以下を使用してください', + apiKey: { + title: 'API キーで作成', + verify: { + title: '認証情報を検証', + description: 'アクセスを検証するために API 認証情報を提供してください', + error: '認証情報の検証に失敗しました。API キーをご確認ください。', + success: '認証情報が正常に検証されました', + }, + configuration: { + title: 'サブスクリプションを設定', + description: 'サブスクリプションパラメータを設定', + }, + }, + oauth: { + title: 'OAuth で作成', + authorization: { + title: 'OAuth 認証', + description: 'Dify があなたのアカウントにアクセスすることを認証', + redirectUrl: 'リダイレクト URL', + redirectUrlHelp: 'OAuth アプリ設定でこの URL を使用', + authorizeButton: '{{provider}} で認証', + waitingAuth: '認証を待機中...', + authSuccess: '認証が成功しました', + authFailed: '認証に失敗しました', + }, + configuration: { + title: 'サブスクリプションを設定', + description: '認証後にサブスクリプションパラメータを設定', + success: 'OAuth設定が成功しました', + }, + }, + manual: { + title: '手動設定', + description: 'Webhook サブスクリプションを手動で設定', + instruction: { + title: '設定手順', + step1: '1. 以下のコールバック URL をコピー', + step2: '2. サードパーティプラットフォームの Webhook 設定に移動', + step3: '3. コールバック URL を Webhook エンドポイントとして追加', + step4: '4. 受信したいイベントを設定', + step5: '5. イベントをトリガーして Webhook をテスト', + step6: '6. ここに戻って Webhook が動作していることを確認し、設定を完了', + }, + logs: { + title: 'リクエストログ', + description: '受信 Webhook リクエストを監視', + empty: 'まだリクエストを受信していません。Webhook 設定をテストしてください。', + status: { + success: '成功', + error: 'エラー', + }, + expandAll: 'すべて展開', + collapseAll: 'すべて折りたたむ', + timestamp: 'タイムスタンプ', + method: 'メソッド', + path: 'パス', + headers: 'ヘッダー', + body: 'ボディ', + response: 'レスポンス', + }, + }, + form: { + subscriptionName: { + label: 'サブスクリプション名', + placeholder: 'サブスクリプション名を入力', + required: 'サブスクリプション名は必須です', + }, + callbackUrl: { + label: 'コールバック URL', + description: 'この URL で Webhook イベントを受信します', + copy: 'コピー', + copied: 'コピーしました!', + }, + }, + errors: { + createFailed: 'サブスクリプションの作成に失敗しました', + verifyFailed: '認証情報の検証に失敗しました', + authFailed: '認証に失敗しました', + networkError: 'ネットワークエラーです。再試行してください', + }, + }, + events: { + title: '利用可能なイベント', + description: 'このトリガープラグインが購読できるイベント', + empty: '利用可能なイベントがありません', + actionNum: '{{num}} {{event}} が含まれています', + item: { + parameters: '{{count}} パラメータ', + }, + }, + provider: { + github: 'GitHub', + gitlab: 'GitLab', + notion: 'Notion', + webhook: 'Webhook', + }, +} + +export default translation diff --git a/web/i18n/zh-Hans/plugin-trigger.ts b/web/i18n/zh-Hans/plugin-trigger.ts index 4a47ba4b89..197d1c965c 100644 --- a/web/i18n/zh-Hans/plugin-trigger.ts +++ b/web/i18n/zh-Hans/plugin-trigger.ts @@ -107,6 +107,7 @@ const translation = { configuration: { title: '配置订阅', description: '授权完成后设置您的订阅参数', + success: 'OAuth 配置成功', }, }, manual: {