feat(i18n): add Japanese (ja-JP) locale support (#3080)

* feat(i18n): add Japanese (ja-JP) locale support

Add a complete Japanese UI locale for the admin frontend and the web
embed widget, and register it everywhere the supported-locale list is
enumerated.

- frontend/src/i18n/locales/ja-JP.ts: full bundle (5,600+ keys) aligned
  with en-US/zh-CN key structure; verified by the locale key audit
- frontend/src/i18n/embed.ts: ja-JP block for the embed widget, plus
  `ja*` normalisation in normalizeEmbedLocale
- Register ja-JP in i18n index, SUPPORTED_LOCALES, localeKeyAudit
  bundles/order, TDesign locale map (ja_JP), login language picker,
  general settings dropdown and embed default-locale options
- Add `language.jaJP` key to every locale so the settings dropdown can
  use $t like its siblings
- Accept ja-JP as an embed channel default_locale on the backend and as
  DEFAULT_LOCALE in the frontend docker entrypoint
- Extend locale-enumerating tests and update accepted-value lists in
  .env.example, public/config.js, widget script and website-docs

* feat(i18n): add ja-JP names and descriptions for prompt templates

Add a ja-JP block to the i18n map of all 32 prompt templates
(system_prompt, context_template, rewrite, fallback, intent_prompts,
agent_system_prompt) so the template picker shows Japanese labels when
the UI locale is ja-JP instead of falling back to the Chinese names.
Prompt content is unchanged.

* feat(i18n): add ja-JP strings for the CLI integration page

main gained the CLI setup page (#3081) with 18 new integrations.cli.* /
integrations.tabs.cli keys; add their Japanese translations so the
locale key audit stays green after rebasing onto main.

* style(i18n): unify ja-JP spacing and long-vowel conventions

- Remove spaces between Latin tokens and adjacent Japanese text
  (e.g. "MCP サービス" -> "MCPサービス"), matching the majority style
  already used in the bundle
- Drop the trailing long-vowel mark on common technical katakana terms
  (サーバ, ユーザ, フォルダ, プロバイダ, パラメータ, ヘッダ, クラスタ, ...)
  so the whole locale follows one convention

* feat(i18n): add ja-JP labels for agent type presets

config/agent_type_presets.yaml carried default / zh-CN / zh-TW labels
only, so the agent editor showed English preset names in the Japanese
UI. Add a ja-JP label and description to all five presets.
main
GUO Zhaogong 2026-09-07 20:20:41 +09:00 committed by GitHub
parent 1c448bf72c
commit 6f0ed94a47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
35 changed files with 7535 additions and 17 deletions

View File

@ -57,7 +57,7 @@ TZ=Asia/Shanghai
# 系统默认语言(BCP-47),用于 Prompt 中 {{language}} 占位符回退。
# 优先级:Accept-Language 请求头 > 此变量 > 内置默认值 (en-US)。
# WEKNORA_LANGUAGE=zh-CN
# 前端界面默认语言(BCP-47)。可选:zh-CN | en-US | ru-RU | ko-KR。
# 前端界面默认语言(BCP-47)。可选:zh-CN | en-US | ru-RU | ko-KR | ja-JP。
# 优先级:用户已选语言(localStorage) > 此变量 > 内置默认 zh-CN。
# 仅影响首次访问/未手动切换语言的用户;改完重启 frontend 容器即生效,无需重建镜像。
# DEFAULT_LOCALE=en-US

View File

@ -43,6 +43,9 @@ agent_type_presets:
zh-TW:
label: "RAG 問答"
description: "基於文件分塊的檢索式問答,適合未啟用 Wiki 的文件 / FAQ 知識庫。"
ja-JP:
label: "RAG Q&A"
description: "ドキュメントのチャンクに基づく根拠付きの検索型回答。Wikiを有効にしていないドキュメント/FAQナレッジベースに最適です。"
config:
system_prompt_id: "progressive_rag_agent"
temperature: 0.7
@ -76,6 +79,9 @@ agent_type_presets:
zh-TW:
label: "Wiki 問答"
description: "以 Wiki 為主的檢索與圖譜跳轉回答,必須綁定已啟用 Wiki 的知識庫。"
ja-JP:
label: "Wiki Q&A"
description: "Wikiを主体とした回答。Wikiページを検索・閲覧し、リンクをたどります。Wikiを有効にしたナレッジベースが必要です。"
config:
system_prompt_id: "wiki_researcher"
temperature: 0.7
@ -107,6 +113,9 @@ agent_type_presets:
zh-TW:
label: "Wiki + RAG 混合"
description: "先用 Wiki 建立導覽和背景,再用分塊檢索精確引用。需綁定同時啟用 Wiki 與向量/關鍵詞索引的知識庫。"
ja-JP:
label: "ハイブリッド(Wiki + RAG)"
description: "Wikiページでナビゲーションと背景を把握し、チャンクを掘り下げて正確に引用します。WikiとチャンクインデックスのRAG両方を有効にしたナレッジベースが必要です。"
config:
system_prompt_id: "hybrid_rag_wiki_agent"
temperature: 0.7
@ -154,6 +163,9 @@ agent_type_presets:
zh-TW:
label: "數據分析"
description: "對 CSV / Excel 等表格檔案執行 SQL 查詢和統計分析。請綁定包含數據檔案的知識庫。"
ja-JP:
label: "データ分析"
description: "表形式ファイル(CSV/Excel)に対するSQLクエリと統計分析。データファイルを含むナレッジベースと組み合わせてください。"
config:
system_prompt_id: "data_analyst"
temperature: 0.3
@ -195,5 +207,8 @@ agent_type_presets:
zh-TW:
label: "自訂"
description: "完全自訂:自行選擇工具、提示詞和知識庫。"
ja-JP:
label: "カスタム"
description: "完全に自由に設定。ツール、プロンプト、ナレッジベースの範囲を手動で選択します。"
# No `config:` block → preset applies no auto-fill.
# No `kb_filter:` → all KBs are selectable.

View File

@ -14,6 +14,9 @@ templates:
ko-KR:
name: "순수 에이전트"
description: "순수 에이전트 모드용 시스템 프롬프트 (지식 베이스 미사용)"
ja-JP:
name: "ピュアエージェント"
description: "ピュアエージェントモード用のシステムプロンプト(ナレッジベース不使用)"
mode: "pure"
content: |
You are WeKnora, an assistant developed by Tencent. Complete the user's request using the capabilities available in this turn.
@ -39,6 +42,9 @@ templates:
ko-KR:
name: "프로그레시브 RAG 에이전트"
description: "지식 베이스를 사용하는 프로그레시브 에이전틱 RAG 모드용 시스템 프롬프트"
ja-JP:
name: "プログレッシブRAGエージェント"
description: "ナレッジベースを使用するプログレッシブエージェンティックRAGモード用のシステムプロンプト"
default: true
mode: "rag"
content: |
@ -75,6 +81,9 @@ templates:
ko-KR:
name: "데이터 분석가"
description: "DuckDB SQL 분석을 사용하는 데이터 분석 에이전트용 시스템 프롬프트"
ja-JP:
name: "データアナリスト"
description: "DuckDB SQLを用いた分析を行うデータ分析エージェント用のシステムプロンプト"
mode: "data_analyst"
content: |
### Role
@ -124,6 +133,9 @@ templates:
ko-KR:
name: "위키 연구원"
description: "지식 그래프 탐색 기능이 있는 위키 연구원 에이전트용 시스템 프롬프트"
ja-JP:
name: "Wikiリサーチャー"
description: "ナレッジグラフ探索を行うWikiリサーチャーエージェント用のシステムプロンプト"
mode: "wiki_researcher"
content: |
<role>
@ -189,6 +201,9 @@ templates:
en-US:
name: "Wiki Fixer System Prompt"
description: "System prompt for repairing and optimizing Wiki pages based on linter issues"
ja-JP:
name: "Wiki修復システムプロンプト"
description: "リンタの指摘に基づいてWikiページを修復・最適化するためのシステムプロンプト"
mode: "smart-reasoning"
content: |
<role>
@ -272,6 +287,9 @@ templates:
ko-KR:
name: "하이브리드 RAG + 위키 에이전트"
description: "Wiki와 벡터/키워드 인덱스가 동시에 활성화된 지식 베이스에서 사용하는 시스템 프롬프트"
ja-JP:
name: "ハイブリッドRAG + Wikiエージェント"
description: "Wikiとチャンク単位の検索を同時に有効化したナレッジベース用のシステムプロンプト"
mode: "smart-reasoning"
content: |
<role>
@ -395,6 +413,9 @@ templates:
en-US:
name: "Skill Installer System Prompt"
description: "System prompt for installing an uploaded skill and its dependencies into the sandbox image"
ja-JP:
name: "スキルインストールシステムプロンプト"
description: "アップロードされたスキルとその依存関係をサンドボックスイメージにインストールするためのシステムプロンプト"
mode: "smart-reasoning"
content: |
<role>

View File

@ -13,6 +13,9 @@ templates:
ko-KR:
name: "표준 템플릿"
description: "참조 및 질문을 명확하게 표시하는 기본 상황별 템플릿"
ja-JP:
name: "標準テンプレート"
description: "参考資料と質問を明確に提示する基本的なコンテキストテンプレート"
default: true
has_knowledge_base: true
content: |
@ -36,6 +39,9 @@ templates:
ko-KR:
name: "상세 템플릿"
description: "자세한 지침과 답변 요구 사항이 포함된 완전한 템플릿"
ja-JP:
name: "詳細テンプレート"
description: "詳細な説明と回答要件を含む完全なテンプレート"
has_knowledge_base: true
content: |
## Task Description
@ -71,6 +77,9 @@ templates:
ko-KR:
name: "간단한 템플릿"
description: "간단한 Q&A 시나리오에 적합한 간소화된 템플릿 형식"
ja-JP:
name: "シンプルテンプレート"
description: "簡単なQ&Aシナリオに適した最小限のテンプレート形式"
has_knowledge_base: true
content: |
Reference materials:
@ -93,6 +102,9 @@ templates:
ko-KR:
name: "Q&A 템플릿"
description: "Q&A 시나리오에 최적화된 템플릿"
ja-JP:
name: "Q&Aテンプレート"
description: "Q&Aシナリオ向けに最適化されたテンプレート"
has_knowledge_base: true
content: |
You need to answer a question. Below are potentially relevant materials:

View File

@ -17,6 +17,9 @@ templates:
ko-KR:
name: "표준 폴백"
description: "친절하게 답변 및 제안을 드릴 수 없음을 알려드립니다."
ja-JP:
name: "標準フォールバック"
description: "回答できないことを丁寧に伝え、提案を提示するメッセージ"
default: true
content: |
Sorry, I could not find content directly related to your question in the knowledge base.
@ -44,6 +47,9 @@ templates:
ko-KR:
name: "정중한 폴백"
description: "더 정중하고 자세한 답변 불가 프롬프트"
ja-JP:
name: "丁寧なフォールバック"
description: "より丁寧で詳細な回答不可メッセージ"
content: |
I'm sorry, I'm currently unable to provide an accurate answer to your question. This may be because:
- The question is beyond my knowledge scope
@ -72,6 +78,9 @@ templates:
ko-KR:
name: "간단한 폴백"
description: "대답할 수 없는 짧은 프롬프트"
ja-JP:
name: "簡潔なフォールバック"
description: "短い回答不可メッセージ"
content: "Sorry, I'm unable to answer this question at the moment. Please try rephrasing your question, or contact customer support."
# --- Model fallback prompt templates (for fallback_strategy = "model") ---
@ -88,6 +97,9 @@ templates:
ko-KR:
name: "모델 폴백 프롬프트"
description: "일반 지식을 바탕으로 모델이 답변하도록 안내하는 프롬프트"
ja-JP:
name: "モデルフォールバックプロンプト"
description: "一般知識に基づいて回答するようモデルを誘導するプロンプト"
mode: "model"
content: |
No content directly matched the user's query via search. However, the knowledge base contains the following documents:
@ -118,6 +130,9 @@ templates:
ko-KR:
name: "표준 폴백 프롬프트"
description: "KB에 관련 결과가 없을 때 모델에 위임하는 기본 프롬프트"
ja-JP:
name: "標準フォールバックプロンプト"
description: "ナレッジベースに関連する結果がない場合にモデルへ委ねるデフォルトのプロンプト"
mode: "model"
content: |
You are WeKnora, a professional and friendly AI assistant developed by Tencent.

View File

@ -16,6 +16,9 @@ templates:
ko-KR:
name: "인사 응답"
description: "인사 의도에 대한 시스템 프롬프트"
ja-JP:
name: "挨拶への応答"
description: "挨拶の意図に対するシステムプロンプト"
content: |
You are WeKnora, a professional and friendly intelligent assistant developed by Tencent.
The user is greeting you, expressing thanks, or saying farewell.
@ -38,6 +41,9 @@ templates:
ko-KR:
name: "잡담 응답"
description: "일상적인 대화를 위한 시스템 프롬프트"
ja-JP:
name: "雑談への応答"
description: "雑談の意図に対するシステムプロンプト"
content: |
You are WeKnora, a professional and friendly intelligent assistant developed by Tencent, with broad general knowledge.
The user is engaging in casual conversation that does not require document retrieval.
@ -62,6 +68,9 @@ templates:
ko-KR:
name: "후속 응답"
description: "대화 기록을 참조하는 후속 질문에 대한 시스템 프롬프트"
ja-JP:
name: "追加質問への応答"
description: "会話履歴を参照する追加質問に対するシステムプロンプト"
content: |
You are WeKnora, a professional intelligent assistant developed by Tencent.
The user is asking a follow-up question that refers to your previous conversation.
@ -86,6 +95,9 @@ templates:
ko-KR:
name: "이미지 분석 응답"
description: "순수 이미지 이해 의도를 위한 시스템 프롬프트"
ja-JP:
name: "画像分析への応答"
description: "画像のみの理解の意図に対するシステムプロンプト"
content: |
You are WeKnora, a professional intelligent assistant developed by Tencent, with image analysis capabilities.
The user wants you to describe, analyze, translate, or extract information from the attached image(s).
@ -109,6 +121,9 @@ templates:
ko-KR:
name: "요약 응답"
description: "대화 요약 의도를 위한 시스템 프롬프트"
ja-JP:
name: "要約への応答"
description: "会話要約の意図に対するシステムプロンプト"
content: |
You are WeKnora, a professional intelligent assistant developed by Tencent, skilled at information organization and summarization.
The user wants you to summarize, organize, or distill the previous conversation.
@ -132,6 +147,9 @@ templates:
ko-KR:
name: "웹 검색 불가 응답"
description: "웹 검색 의도가 감지되었지만 웹 검색이 활성화되지 않은 경우의 시스템 프롬프트"
ja-JP:
name: "Web検索利用不可の応答"
description: "Web検索の意図を検出したがWeb検索が有効でない場合のシステムプロンプト"
content: |
You are WeKnora, a professional intelligent assistant developed by Tencent.
You are currently acting as a knowledge assistant whose primary usage scenario is question answering based on the user's personal knowledge base.
@ -158,6 +176,9 @@ templates:
ko-KR:
name: "문서 분석 응답"
description: "순수 문서 이해 의도를 위한 시스템 프롬프트"
ja-JP:
name: "ドキュメント分析への応答"
description: "ドキュメントのみの理解の意図に対するシステムプロンプト"
content: |
You are WeKnora, a professional intelligent assistant developed by Tencent, with document analysis capabilities.
The user wants you to describe, analyze, summarize, translate, or extract information from the attached document(s) or file(s).

View File

@ -16,6 +16,9 @@ templates:
ko-KR:
name: "표준 재작성 (의도 분류 포함)"
description: "질문 재작성, 의도 분류 및 이미지/첨부 파일 분석을 포함한 기본 템플릿"
ja-JP:
name: "標準リライト(意図分類あり)"
description: "質問のリライト、意図分類、画像・添付ファイル分析を含むデフォルトのテンプレート"
default: true
content: |
You are an intelligent assistant that performs THREE tasks on the user's question:
@ -140,6 +143,9 @@ templates:
ko-KR:
name: "표준 재작성"
description: "참조를 제거하고 누락을 완료하기 위한 표준 재작성 규칙"
ja-JP:
name: "標準リライト"
description: "指示語の解決と省略の補完を行う標準的なリライトルール"
content: |
You are a professional question rewriting assistant. Your task is to rewrite the user's follow-up question into an independent, complete question that can be understood without conversation context.
@ -179,6 +185,9 @@ templates:
ko-KR:
name: "엄격하게 다시 작성됨"
description: "문제가 완전하고 독립적인지 확인하기 위해 더 엄격한 재작성 요구 사항"
ja-JP:
name: "厳格なリライト"
description: "質問の完全性と独立性を確保するより厳格なリライト要件"
content: |
You are a question rewriting expert. Rewrite the user's question into a complete, independent question.

View File

@ -13,6 +13,9 @@ templates:
ko-KR:
name: "지식베이스 Q&A 도우미"
description: "대부분의 시나리오에 적합한 기본 지식베이스 Q&A 템플릿"
ja-JP:
name: "ナレッジベースQ&Aアシスタント"
description: "ほとんどのシナリオに適した基本的なナレッジベースQ&Aテンプレート"
default: true
has_knowledge_base: true
content: |
@ -53,6 +56,9 @@ templates:
ko-KR:
name: "도메인 전문가 보조"
description: "기술 또는 전문 분야에 적합한 전문적이고 심층적인 답변 스타일"
ja-JP:
name: "ドメインエキスパート"
description: "技術・専門領域に適した専門的で詳細な回答スタイル"
has_knowledge_base: true
content: |
You are WeKnora, a senior domain expert assistant developed by Tencent, with extensive professional knowledge and practical experience.
@ -84,6 +90,9 @@ templates:
ko-KR:
name: "고객 서비스 도우미"
description: "고객 서비스 시나리오에 적합한 친절하고 열정적인 서비스 스타일"
ja-JP:
name: "カスタマーサービス"
description: "カスタマーサポートに適した親しみやすく丁寧な対応スタイル"
has_knowledge_base: true
content: |
You are WeKnora, a professional and friendly customer service assistant developed by Tencent, dedicated to providing quality service experiences for users.
@ -115,6 +124,9 @@ templates:
ko-KR:
name: "기술지원"
description: "코드 예제를 포함한 기술적인 질문에 대한 전문적인 답변"
ja-JP:
name: "テクニカルサポート"
description: "コード例を含む専門的な技術問題の解決"
has_knowledge_base: true
content: |
You are WeKnora, a professional technical support engineer developed by Tencent, responsible for answering technical questions.
@ -147,6 +159,9 @@ templates:
ko-KR:
name: "일반적인 대화"
description: "지식베이스에 의존하지 않는 보편적인 대화 도우미"
ja-JP:
name: "汎用チャット"
description: "ナレッジベースに依存しない汎用の会話アシスタント"
has_knowledge_base: false
content: |
You are WeKnora, an intelligent conversational assistant developed by Tencent, capable of natural and fluent dialogue with users.
@ -173,6 +188,9 @@ templates:
ko-KR:
name: "웹 검색 도우미"
description: "웹 검색과 결합하여 최신 정보를 얻으세요"
ja-JP:
name: "Web検索アシスタント"
description: "Web検索と組み合わせて最新情報を取得"
has_knowledge_base: true
has_web_search: true
content: |

View File

@ -3,7 +3,7 @@
# Only emit whitelisted locale tags to avoid config.js injection from env values.
RUNTIME_DEFAULT_LOCALE=""
case "${DEFAULT_LOCALE:-}" in
zh-CN|en-US|ru-RU|ko-KR) RUNTIME_DEFAULT_LOCALE="${DEFAULT_LOCALE}" ;;
zh-CN|en-US|ru-RU|ko-KR|ja-JP) RUNTIME_DEFAULT_LOCALE="${DEFAULT_LOCALE}" ;;
esac
# 生成运行时配置文件,注入环境变量到前端

View File

@ -4,6 +4,6 @@ window.__RUNTIME_CONFIG__ = {
MAX_SKILL_BUNDLE_SIZE_MB: 256,
// Optional: serve embed on a dedicated origin, e.g. 'https://embed.example.com'
EMBED_BASE_URL: '',
// Optional: default UI locale for first-time visitors (zh-CN | en-US | ru-RU | ko-KR)
// Optional: default UI locale for first-time visitors (zh-CN | en-US | ru-RU | ko-KR | ja-JP)
DEFAULT_LOCALE: '',
};

View File

@ -12,7 +12,7 @@
* WeKnora.openWithQuery('How do I reset my password?')
* Opens the panel (if closed) and sends the query when the iframe is ready.
* WeKnora.setLocale('en-US')
* Switch embed UI language (zh-CN | en-US | ko-KR | ru-RU).
* Switch embed UI language (zh-CN | en-US | ko-KR | ja-JP | ru-RU).
*
* Secure mode (recommended): instead of `token`, pass `tokenEndpoint` — a URL on
* your own backend that returns { token: "ems_...", expiresIn: 1800 }. Your

View File

@ -18,6 +18,7 @@ import { renderWorkspaceNotifyContent } from '@/utils/workspaceNotifyContent'
import enUSConfig from 'tdesign-vue-next/esm/locale/en_US'
import zhCNConfig from 'tdesign-vue-next/esm/locale/zh_CN'
import koKRConfig from 'tdesign-vue-next/esm/locale/ko_KR'
import jaJPConfig from 'tdesign-vue-next/esm/locale/ja_JP'
import ruRUConfig from 'tdesign-vue-next/esm/locale/ru_RU'
const { locale, t, tm } = useI18n()
@ -30,6 +31,7 @@ const tdLocaleMap: Record<string, object> = {
'en-US': enUSConfig,
'zh-CN': zhCNConfig,
'ko-KR': koKRConfig,
'ja-JP': jaJPConfig,
'ru-RU': ruRUConfig,
}

View File

@ -47,7 +47,7 @@ export interface EmbedChannelPublicConfig {
default_locale?: string
}
export type EmbedLocaleTag = 'zh-CN' | 'en-US' | 'ko-KR' | 'ru-RU' | ''
export type EmbedLocaleTag = 'zh-CN' | 'en-US' | 'ko-KR' | 'ja-JP' | 'ru-RU' | ''
export interface EmbedChannelStats {
session_count: number

View File

@ -538,6 +538,7 @@ const defaultLocaleOptions = computed(() => ([
{ label: '简体中文', value: 'zh-CN' },
{ label: 'English', value: 'en-US' },
{ label: '한국어', value: 'ko-KR' },
{ label: '日本語', value: 'ja-JP' },
{ label: 'Русский', value: 'ru-RU' },
]))

View File

@ -540,6 +540,545 @@ const messages = {
}
}
},
"ja-JP": {
"embedPublish": {
"title": "Webページ埋め込み",
"description": "このエージェントを自社サイトに埋め込むと、訪問者はページ内のチャットウィンドウやフローティングウィジェットから会話できます。",
"create": "埋め込みチャネルを作成",
"empty": "埋め込みチャネルがありません",
"unnamed": "名称未設定のチャネル",
"agent": "エージェント",
"rateLimit": "レート制限",
"rateLimitUnit": "回/分",
"allowedOrigins": "許可オリジン",
"embedCode": "埋め込みコード",
"widgetCode": "ウィジェットスクリプト",
"copyCode": "コードをコピー",
"rotateToken": "トークンをローテーション",
"delete": "削除",
"edit": "編集",
"createTitle": "埋め込みチャネルを作成",
"editTitle": "埋め込みチャネルを編集",
"name": "名前",
"namePlaceholder": "例: Webサイトサポート",
"welcomeMessage": "ウェルカムメッセージ",
"welcomePlaceholder": "こんにちは。何かお手伝いできることはありますか?",
"originsLabel": "許可オリジン(1行に1つ、空の場合はすべて許可)",
"originsPlaceholder": "https://shop.example.com",
"rateLimitLabel": "1分あたりのリクエスト上限",
"debug": "デバッグプレビュー",
"createdDebugHint": "埋め込みチャネルを作成しました。「デバッグプレビュー」で新しいタブを開いて確認できます",
"primaryColor": "テーマカラー",
"pageTitle": "ページタイトル",
"pageTitlePlaceholder": "AIアシスタント",
"tokenHint": "チャネルキーの読み込みに失敗しました。このチャネルを閉じて開き直してください。",
"created": "埋め込みチャネルを作成しました",
"updated": "埋め込みチャネルを更新しました",
"deleted": "削除しました",
"tokenRotated": "トークンをローテーションしました",
"copied": "埋め込みコードをコピーしました",
"loadError": "読み込みに失敗しました",
"missingChannel": "埋め込みチャネルまたはトークンがありません",
"invalidChannel": "無効な埋め込みチャネルです",
"sessionFailed": "チャットセッションの作成に失敗しました。再試行してください",
"channelDisabled": "この埋め込みチャネルは無効になっています。エージェントエディタの「Webページ埋め込み」で再度有効にしてください",
"loading": "読み込み中...",
"tabIframe": "iframe",
"tabWidget": "ウィジェット",
"widgetPosition": "ウィジェットの位置",
"widgetPreview": "ウィジェットのプレビュー",
"positionBottomRight": "右下",
"positionBottomLeft": "左下",
"positionTopRight": "右上",
"positionTopLeft": "左上",
"publishToken": "公開トークン",
"publishTokenHelp": "公開トークン(em_…)は、この埋め込みチャネルの長期的なシークレットで、APIキーに相当します。チャネル詳細を開くと表示・コピーできます。ローテーションすると、以前のトークンは即座に無効になります。",
"sessionTokenHelp": "訪問者がチャットを開くと、iframeは公開トークンを短期のセッショントークン(ems_…、約30分)と交換します。以降のAPI呼び出しはセッショントークンを使うため、公開トークンがURLに残りません。",
"rotateTokenHelp": "ローテーションすると、以前の公開トークンは無効になります。デプロイ済みの埋め込みコードをすべて更新しないと、サードパーティのサイトからアクセスできなくなります。",
"revealToken": "表示",
"hideToken": "非表示",
"copyToken": "トークンをコピー",
"tokenCopied": "トークンをコピーしました",
"awaitingToken": "ホストページからトークンが渡されるのを待っています…",
"preview": "プレビュー",
"previewLoading": "プレビューを読み込み中…",
"previewIframeHint": "サードパーティのページにiframeで埋め込んだ場合の表示です(コピーしたコードと同じ)。",
"previewWidgetHint": "疑似ホストページ上でフローティングウィジェットを表示します。実際のサイトでは、ホストページがpostMessageでトークンを渡します。",
"previewMockPage": "疑似ホストページ",
"defaultChatTitle": "AIアシスタント",
"newChat": "新しいチャット",
"rotateConfirmTitle": "公開トークンをローテーションしますか?",
"rotateConfirmBody": "以前のトークンは即座に使用できなくなります。デプロイ済みの埋め込みコードをすべて更新してください。",
"tokenRequiredForPreview": "プレビューには公開トークンが必要です。先にチャネルを作成するか、トークンをローテーションしてください。"
},
"chat": {
"title": "チャット",
"newChat": "新しいチャット",
"suggestedQuestions": "こんな質問ができます",
"suggestedQuestionsLoading": "読み込み中...",
"followUpQuestions": "続けて質問",
"followUpQuestionsLoading": "おすすめの質問を読み込み中",
"refreshSuggestedQuestions": "別の質問",
"inputPlaceholder": "メッセージを入力してください...",
"send": "送信",
"thinking": "思考中...",
"regenerate": "再生成",
"copy": "コピー",
"delete": "削除",
"reference": "引用",
"noMessages": "メッセージはありません",
"waitingForAnswer": "回答を待っています...",
"cannotAnswer": "申し訳ありません。この質問にはお答えできません。",
"summarizingAnswer": "回答を要約中...",
"loading": "読み込み中...",
"referencedContent": "{count}件の関連資料を引用しました",
"deepThinking": "深い思考が完了しました",
"knowledgeBaseQandA": "ナレッジベースQ&A",
"askKnowledgeBase": "ナレッジベースに質問",
"sourcesCount": "{count}件の出典",
"pleaseEnterContent": "内容を入力してください!",
"pleaseUploadKnowledgeBase": "先にナレッジベースをアップロードしてください!",
"replyingPleaseWait": "回答中です。しばらくしてから再試行してください!",
"createSessionFailed": "セッションの作成に失敗しました",
"createSessionError": "セッション作成でエラーが発生しました",
"unableToGetKnowledgeBaseId": "ナレッジベースIDを取得できません",
"summaryInProgress": "回答を要約しています…",
"thinkingAlt": "思考中",
"preparingAnswer": "回答を準備しています…",
"connectingModelAndGeneratingAnswer": "モデルに接続して回答を生成しています…",
"modelStillResponding": "モデルの応答に時間がかかっています。引き続きお待ちください…",
"deepThoughtCompleted": "深い思考が完了しました",
"deepThoughtAlt": "深い思考が完了しました",
"referencesTitle": "{count}件の関連内容を参照しました",
"referencesDocCount": "{count}件のドキュメントを引用しました",
"referencesWebCount": "{count}件のWebページを参照しました",
"referencesDocAndWebCount": "{docCount}件のドキュメントと{webCount}件のWebページを引用しました",
"referenceChunkCount": "{count}件のチャンク",
"fallbackHint": "ナレッジベースに関連する内容が見つかりませんでした。以上はモデルによる直接の回答です。",
"requestInfoTitle": "リクエスト情報",
"requestInfoRequestId": "Request ID",
"requestInfoMessageId": "メッセージID",
"requestInfoSessionId": "セッションID",
"requestInfoUrl": "リクエスト",
"requestInfoSentAt": "送信日時",
"requestInfoEmpty": "リクエスト情報はありません",
"channelWeb": "Web",
"channelApi": "API",
"channelIm": "IM",
"chunkLabel": "チャンク{index}:",
"navigateToDocument": "ドキュメントの詳細を表示",
"referenceIconAlt": "参考資料アイコン",
"chunkIdLabel": "チャンクID:",
"documentIdLabel": "ドキュメントID:",
"faqIdLabel": "FAQ ID:",
"faqContainerIdLabel": "所属ドキュメントID:",
"faqAnswersLabel": "回答:",
"chunkOrdinal": "チャンク{index}",
"previewContent": "内容をプレビュー",
"noPlanSteps": "具体的な手順は提供されていません",
"chunkIndexLabel": "チャンク #{index}",
"chunkPositionLabel": "(位置: {position})",
"noRelatedChunks": "関連するチャンクが見つかりません",
"noSearchResults": "検索結果が見つかりません",
"relevanceHigh": "関連性 高",
"relevanceMedium": "関連性 中",
"relevanceLow": "関連性 低",
"relevanceWeak": "関連性 弱",
"webSearchNoResults": "検索結果が見つかりません",
"otherSource": "その他の出典",
"webGroupIntro": "以下の{count}件の出典元",
"graphConfigTitle": "グラフ設定",
"entityTypesLabel": "エンティティタイプ:",
"relationTypesLabel": "リレーションタイプ:",
"graphResultsHeader": "{count}件の関連結果が見つかりました",
"graphNoResults": "関連するグラフ情報が見つかりません",
"unknownLink": "不明なリンク",
"contentLengthLabel": "長さ{value}",
"notProvided": "未提供",
"promptLabel": "プロンプト",
"errorMessageLabel": "エラーメッセージ",
"summaryLabel": "要約",
"rawTextLabel": "元のテキスト",
"collapseRaw": "原文を折りたたむ",
"expandRaw": "原文を展開",
"noWebContent": "Webページの内容を取得できませんでした",
"lengthChars": "{value}文字",
"lengthThousands": "{value}千文字",
"lengthTenThousands": "{value}万文字",
"sqlQueryExecuted": "実行したSQLクエリ:",
"sqlResultsLabel": "実行結果:",
"rowsLabel": "行",
"columnsLabel": "列",
"noDatabaseRecords": "一致するレコードが見つかりません",
"nullValuePlaceholder": "<NULL>",
"documentTitleLabel": "ドキュメントタイトル:",
"chunkCountLabel": "チャンク数:",
"chunkCountValue": "{count}件のチャンク",
"documentDescriptionLabel": "説明:",
"documentStatusLabel": "ステータス:",
"documentSourceLabel": "ソース:",
"documentFileLabel": "ファイル:",
"documentMetadataLabel": "メタデータ",
"documentInfoSummaryLabel": "ドキュメント情報",
"documentInfoCount": "{requested}件中{count}件のドキュメントを取得しました",
"documentInfoErrors": "エラー",
"documentInfoEmpty": "ドキュメント情報はありません",
"statusDescription": "ステータスの説明",
"statusIndexed": "ドキュメントはインデックス済みで検索できます",
"statusSearchable": "検索ツールでドキュメントの内容を探せます",
"statusChunkDetailAvailable": "get_chunk_detailでチャンクの詳細を確認できます",
"positionLabel": "位置:",
"chunkPositionValue": "チャンク #{index}",
"contentLengthLabelSimple": "内容の長さ:",
"fullContentLabel": "全文",
"copyContent": "内容をコピー",
"knowledgeBaseCount": "{count}件のナレッジベース",
"noKnowledgeBases": "利用できるナレッジベースがありません",
"enterDescription": "説明を入力",
"rawOutputLabel": "生の出力",
"wikiWritePageTitle": "Wikiページ書き込み",
"wikiReplaceTextTitle": "Wikiテキスト置換",
"wikiRenamePageTitle": "Wikiページ名変更",
"wikiDeletePageTitle": "Wikiページ削除",
"wikiActionCreated": "作成済み",
"wikiActionUpdated": "更新済み",
"wikiActionRenamed": "名前変更済み",
"wikiActionDeleted": "削除済み",
"wikiFieldSlug": "ページパス",
"wikiFieldTitle": "タイトル",
"wikiFieldPageType": "タイプ",
"wikiFieldSummary": "要約",
"wikiFieldOldText": "変更前のテキスト",
"wikiFieldNewText": "変更後のテキスト",
"wikiFieldOldSlug": "変更前のパス",
"wikiFieldNewSlug": "変更後のパス",
"wikiFieldAffectedPages": "影響を受けるページ",
"wikiAffectedCount": "{count}件のページのリンクを更新しました",
"selectKnowledgeBaseWarning": "ナレッジベースを1つ以上選択してください",
"processError": "処理エラー",
"sessionExcerpt": "セッションの抜粋",
"noAnswerContent": "(回答内容なし)",
"noMatchFound": "一致する内容が見つかりません",
"deleteSessionFailed": "削除に失敗しました。しばらくしてから再試行してください!",
"imageTooMany": "画像は最大5枚までです",
"imageTypeSizeError": "JPG/PNG/GIF/WEBP形式で10MB以下のみ対応しています",
"imageReadFailed": "画像の読み込みに失敗しました",
"imageUploadTooltip": "画像をアップロード(貼り付け・ドラッグ&ドロップ対応)",
"attachmentUploadTooltip": "添付ファイルをアップロード(ドキュメント、音声など)",
"attachmentWithCount": "{count}件の添付ファイルをアップロードしました",
"attachmentTooMany": "添付ファイルは最大{max}件までです",
"attachmentTooLarge": "ファイル{name}が{max}MBの上限を超えています",
"attachmentTypeNotSupported": "サポートされていないファイル形式: {name}",
"attachmentUploading": "アップロード中{progress}%",
"attachmentParsing": "解析中",
"attachmentReady": "解析完了",
"attachmentUploadFailed": "添付ファイルのアップロードに失敗しました",
"attachmentParseFailed": "添付ファイルの解析に失敗しました",
"attachmentStillProcessing": "添付ファイル{name}はまだ解析中です",
"attachmentParseTimeout": "添付ファイルの解析がタイムアウトしました。しばらくしてから再試行してください。",
"copySuccess": "クリップボードにコピーしました",
"copyFailed": "コピーに失敗しました",
"emptyContentWarning": "内容が空です",
"editorOpened": "エディタを開きました。ナレッジベースを選択して保存してください"
},
"common": {
"loading": "読み込み中...",
"confirm": "確認",
"cancel": "キャンセル",
"copy": "コピー",
"copied": "コピーしました",
"finish": "完了"
},
"error": {
"tokenNotFound": "ログイントークンが見つかりません。再度ログインしてください",
"invalidImageLink": "無効な画像リンクです",
"streamFailed": "ストリーム接続に失敗しました"
},
"agent": {
"taskLabel": "タスク:",
"think": "思考",
"copy": "コピー",
"addToKnowledgeBase": "ナレッジベースに追加",
"artifactDrawer": {
"buttonTitle": "この回答で生成されたファイルを表示",
"title": "生成されたファイル",
"empty": "今回はダウンロードできるファイルは生成されませんでした。",
"preview": "プレビュー",
"previewBack": "一覧に戻る",
"collecting": "生成されたファイルを保存しています…",
"download": "ダウンロード",
"downloadFailed": "ダウンロードに失敗しました。再試行してください。",
"inlinePreviewHint": "クリックしてプレビュー",
"inlineMissing": "ファイルを利用できません"
},
"updatePlan": "計画を更新",
"webSearchFound": "Web検索結果を<strong>{count}</strong>件見つけました",
"argumentsLabel": "引数",
"toolFallback": "ツール",
"stepsCompleted": "<strong>{steps}</strong>ステップ完了",
"stepsCompletedWithDuration": "<strong>{steps}</strong>ステップ完了(所要時間<strong>{duration}</strong>)",
"reasoningRounds": "推論<strong>{rounds}</strong>回",
"toolCalls": "ツール呼び出し<strong>{tools}</strong>回",
"durationSuffix": "<strong>{duration}</strong>",
"stepSummarySeparator": " · "
},
"agentStream": {
"toolApproval": {
"banner": "このMCPツールは人による承認が必要です。実行前にパラメータを確認してください。",
"waiting": "承認待ち · {target}",
"waitingStatus": "承認待ち",
"targetWithTool": "{service} › {tool}",
"titleWithTarget": "承認 · {service} › {tool}",
"resolvedApproved": "承認済み · {target}",
"resolvedRejected": "拒否済み · {target}",
"service": "サービス",
"tool": "ツール",
"argsLabel": "呼び出し引数",
"argsModified": "変更済み",
"countdown": "残り約{seconds}秒",
"countdownShort": "{seconds}s",
"approve": "承認して実行",
"reject": "拒否",
"approvedTag": "承認済み",
"rejectedTag": "拒否済み",
"invalidJson": "引数が正しいJSONではありません",
"submitted": "送信しました",
"submitFailed": "送信に失敗しました",
"userRejected": "ユーザが拒否しました"
},
"mcpOAuth": {
"banner": "このMCPサービスを利用するにはOAuth認可が必要です",
"waiting": "認可待ち · {target}",
"waitingStatus": "認可待ち",
"targetWithTool": "{service} › {tool}",
"titleWithService": "OAuth · {service}",
"titleWithTool": "OAuth · {service} › {tool}",
"resolvedAuthorized": "認可済み · {target}",
"resolvedTimedOut": "タイムアウト · {target}",
"resolvedCanceled": "スキップ · {target}",
"desc": "認可を開始すると新しいウィンドウが開き、ログインします。認可が成功すると、ツール呼び出しは自動的に再開されます。",
"authorize": "認可する",
"skip": "スキップ",
"countdown": "残り約{seconds}秒",
"countdownShort": "{seconds}s",
"authorizedTag": "認可済み",
"timedOutTag": "認可がタイムアウトしました",
"canceledTag": "キャンセル済み",
"authorizedToast": "認可しました。処理を再開しています…",
"startFailed": "認可の開始に失敗しました",
"resumeFailed": "再開に失敗しました。再試行してください。",
"skipFailed": "スキップに失敗しました。再試行してください。"
},
"tools": {
"searchKnowledge": "ナレッジベース検索",
"grepChunks": "テキストパターン検索",
"webSearch": "Web検索",
"webFetch": "Webページ取得",
"getDocumentInfo": "ドキュメント情報を取得",
"listKnowledgeChunks": "ナレッジチャンクを一覧表示",
"getRelatedDocuments": "関連ドキュメントを検索",
"getDocumentContent": "ドキュメント内容を取得",
"todoWrite": "計画管理",
"knowledgeGraphExtract": "ナレッジグラフ抽出",
"thinking": "思考",
"imageAnalysis": "画像解析",
"queryUnderstand": "クエリの理解",
"queryKnowledgeGraph": "ナレッジグラフクエリ",
"readSkill": "スキルを読み込む",
"executeSkillScript": "スキルスクリプトを実行",
"listSandboxFiles": "サンドボックスのファイル一覧",
"readSandboxFile": "サンドボックスファイルを読み取り",
"writeSandboxFile": "サンドボックスファイルに書き込み",
"editSandboxFile": "サンドボックスファイルを編集",
"shellExec": "サンドボックスコマンドを実行",
"dataAnalysis": "データ分析",
"dataSchema": "データスキーマ",
"databaseQuery": "データベースクエリ"
},
"skillFiles": {
"heading": "スキルファイル",
"script": "スクリプト",
"instructions": "スキルの説明"
},
"sandboxFiles": {
"found": "{count}件のファイルが見つかりました",
"empty": "ファイルはありません",
"truncated": "一覧は省略されています",
"wrote": "書き込みました",
"edited": "編集しました",
"replacements": "{count}件置換しました",
"moreLines": "他{count}行"
},
"shellExec": {
"workDir": "ディレクトリ",
"exitCode": "終了コード",
"stdout": "標準出力",
"stderr": "標準エラー出力",
"emptyOutput": "出力なし",
"truncated": "出力は省略されています",
"killed": "タイムアウト",
"binarySuppressed": "バイナリ出力は省略されました。ダウンロードするには、成果物ディレクトリにファイルを書き出してください。"
},
"summary": {
"searchKb": "ナレッジベースを<strong>{count}</strong>回検索",
"thinking": "<strong>{count}</strong>回思考",
"callTool": "{name}を呼び出し",
"callTools": "ツール{names}を呼び出し",
"intermediateSteps": "<strong>{count}</strong>件の中間ステップ",
"separator": "、",
"comma": "、"
},
"citation": {
"loading": "読み込み中...",
"notFound": "内容が見つかりません",
"loadFailed": "読み込みに失敗しました",
"chunkId": "チャンクID",
"noKbForWiki": "関連するナレッジベースを特定できないため、Wikiを開けません。"
},
"toolSummary": {
"getDocument": "ドキュメントを取得: {title}",
"document": "ドキュメント",
"listChunks": "{title}を表示",
"listFaqEntry": "FAQを表示: {question}",
"deepThinking": "深い思考"
},
"plan": {
"inProgress": "進行中",
"pending": "保留中",
"completed": "完了"
},
"search": {
"noResults": "一致する内容が見つかりません",
"candidatesBelowThreshold": "{count}件の候補が該当しましたが、関連性が十分でないため使用していません",
"foundResultsFromFiles": "{files}件のファイルから{count}件の結果が見つかりました",
"foundResults": "{count}件の結果が見つかりました",
"foundMixedResults": "{count}件の結果が見つかりました(ドキュメント{docCount}件、Web検索結果{webCount}件)",
"webResults": "{count}件のWeb検索結果が見つかりました",
"grepSummary": "{docs}件のドキュメントから{chunks}件の一致するチャンクが見つかりました"
},
"grepResults": {
"chunkHits": "{count}件のチャンク",
"keywordHits": "{count}件ヒット",
"titleMatch": "タイトル一致",
"faqEntry": "FAQ項目"
},
"knowledgeChunksList": {
"chunkRange": "{total}件中{fetched}件のチャンクを読み込みました",
"page": "{page}ページ目、1ページ{pageSize}件"
},
"attachmentParsing": {
"parsedSummary": "{count}件の添付ファイルを解析しました",
"parsedWithSkipped": "{parsed}件の添付ファイルを解析しました。{skipped}件は処理中のためスキップしました",
"noneReady": "解析済みの添付ファイルはありません"
},
"ragPipeline": {
"understanding": "クエリを理解しています...",
"understandDone": "クエリを理解しました",
"searching": "ナレッジベースを検索しています...",
"searchingWithQuery": "ナレッジベースを検索しています: 「{query}」",
"searchingWeb": "Webを検索しています...",
"searchingWebWithQuery": "Webを検索しています: 「{query}」",
"searchingMixed": "ナレッジベースとWebを検索しています...",
"searchingMixedWithQuery": "ナレッジベースとWebを検索しています: 「{query}」",
"searchDone": "検索が完了しました",
"searchDoneWithQuery": "ナレッジベースを検索しました: 「{query}」",
"referencedDocs": "<strong>{count}</strong>件のドキュメントを引用",
"referencedWebs": "<strong>{count}</strong>件のWeb検索結果を引用",
"referencedDocAndWeb": "<strong>{docCount}</strong>件のドキュメントと<strong>{webCount}</strong>件のWeb検索結果を引用"
},
"toolStatus": {
"calling": "{name}を呼び出しています...",
"searchKb": "ナレッジベース検索",
"searchKbFailed": "ナレッジベース検索に失敗しました",
"searchMixed": "ナレッジベースとWebを検索しました",
"searchMixedFailed": "検索に失敗しました",
"webSearch": "Web検索",
"webSearchFailed": "Web検索に失敗しました",
"grepSearch": "キーワード検索",
"grepSearchFailed": "キーワード検索に失敗しました",
"getDocInfo": "ドキュメント情報を取得しています",
"getDocInfoFailed": "ドキュメント情報の取得に失敗しました",
"viewDocument": "ドキュメントを表示",
"thinkingDone": "思考が完了しました",
"thinkingFailed": "思考に失敗しました",
"updateTodos": "タスクリストを更新しています",
"updateTodosFailed": "タスクリストの更新に失敗しました",
"imageAnalyzing": "画像の内容を確認しています...",
"imageAnalysisDone": "画像の内容を確認しました",
"imageAnalysisFailed": "画像の確認に失敗しました",
"attachmentParsing": "添付ファイルを解析しています...",
"attachmentParsingDone": "添付ファイルを解析しました",
"attachmentParsingFailed": "添付ファイルの解析に失敗しました",
"queryUnderstanding": "クエリを理解しています...",
"queryUnderstandDone": "クエリを理解しました",
"called": "{name}を呼び出しました",
"calledFailed": "{name}の呼び出しに失敗しました",
"shellExecRunning": "サンドボックスコマンドを実行しています..."
},
"copy": {
"emptyContent": "現在の回答が空のため、コピーできません",
"success": "クリップボードにコピーしました",
"failed": "コピーに失敗しました。手動でコピーしてください"
},
"saveToKb": {
"emptyContent": "現在の回答が空のため、ナレッジベースに保存できません",
"editorOpened": "エディタを開きました。ナレッジベースを選択して保存してください"
}
},
"input": {
"placeholder": "モデルに直接質問",
"stopGeneration": "生成を停止",
"send": "送信",
"webSearch": {
"label": "Web検索",
"toggleOn": "Web検索を有効化",
"toggleOff": "Web検索を無効化",
"agentDisabled": "このエージェントではWeb検索が有効になっていません"
},
"imageUpload": {
"label": "画像をアップロード",
"tooltip": "画像をアップロード",
"agentDisabled": "このエージェントでは画像アップロードが有効になっていません"
},
"fileUpload": {
"label": "ファイルをアップロード",
"tooltip": "ドキュメントなどの添付ファイルをアップロード",
"tooMany": "添付ファイルは最大5件までです",
"tooLarge": "添付ファイルが20MBの上限を超えています"
},
"messages": {
"enterContent": "先に内容を入力してください!",
"selectKnowledge": "先にナレッジベースを選択してください!",
"replying": "回答中です。しばらくしてから再試行してください!",
"agentSwitchedOn": "スマート推論に切り替えました",
"agentSwitchedOff": "クイック回答に切り替えました",
"agentSelected": "エージェント「{name}」を選択しました",
"agentEnabled": "エージェントモードを有効にしました",
"agentDisabled": "エージェントモードを無効にしました",
"agentNotReadyDetail": "エージェントの準備ができていません。次の項目を設定してください: {reasons}",
"webSearchNotConfigured": "Web検索エンジンが設定されていません。設定画面でプロバイダと認証情報を設定してください。",
"webSearchEnabled": "Web検索を有効にしました",
"webSearchDisabled": "Web検索を無効にしました",
"sessionMissing": "セッションIDが存在しません",
"messageMissing": "メッセージIDを取得できません。ページを更新して再試行してください。",
"stopSuccess": "生成を停止しました",
"stopFailed": "停止に失敗しました。再試行してください。"
}
},
"knowledgeEditor": {
"wikiBrowser": {
"viewInGraph": "グラフで表示",
"editingBadge": "編集中",
"pageActions": "ページ操作",
"version": "v{ver}",
"filterSummary": "要約",
"filterEntity": "エンティティ",
"filterConcept": "概念",
"filterSynthesis": "統合",
"filterComparison": "比較"
}
}
},
"en-US": {
"embedPublish": {
"title": "Web Page Embed",
@ -1286,7 +1825,7 @@ const ruEmbedPublish = {
},
} as const
const SUPPORTED_LOCALES = ['zh-CN', 'en-US', 'ko-KR', 'ru-RU'] as const
const SUPPORTED_LOCALES = ['zh-CN', 'en-US', 'ko-KR', 'ja-JP', 'ru-RU'] as const
export type EmbedLocale = (typeof SUPPORTED_LOCALES)[number]
/** Isolated from the main app `locale` key so embed preview never hijacks admin UI language. */
@ -1297,6 +1836,7 @@ export function normalizeEmbedLocale(raw: string): EmbedLocale {
const s = raw.trim().toLowerCase()
if (s.startsWith('en')) return 'en-US'
if (s.startsWith('ko')) return 'ko-KR'
if (s.startsWith('ja')) return 'ja-JP'
if (s.startsWith('ru')) return 'ru-RU'
if (s.startsWith('zh')) return 'zh-CN'
const exact = SUPPORTED_LOCALES.find((l) => l.toLowerCase() === s)
@ -1341,6 +1881,7 @@ const i18n = createI18n({
'zh-CN': messages['zh-CN'],
'en-US': messages['en-US'],
'ko-KR': deepMerge(messages['en-US'], koEmbedPublish),
'ja-JP': messages['ja-JP'],
'ru-RU': deepMerge(messages['en-US'], ruEmbedPublish),
},
})

View File

@ -3,13 +3,15 @@ import zhCN from './locales/zh-CN.ts'
import ruRU from './locales/ru-RU.ts'
import enUS from './locales/en-US.ts'
import koKR from './locales/ko-KR.ts'
import jaJP from './locales/ja-JP.ts'
import { BUILT_IN_DEFAULT, resolveDefaultLocale } from './resolveDefaultLocale.ts'
const messages = {
'zh-CN': zhCN,
'en-US': enUS,
'ru-RU': ruRU,
'ko-KR': koKR
'ko-KR': koKR,
'ja-JP': jaJP
}
// User's explicit past choice wins; otherwise use the deployment default.

View File

@ -197,6 +197,7 @@ test('prune rebuild restores registered audit keys from baked-in English default
'en-US': {},
'zh-CN': {},
'ko-KR': {},
'ja-JP': {},
'ru-RU': {},
} as Record<LocaleName, Record<string, unknown>>
const rebuilt = rebuildPrunedLocales(emptyBundles, usage)

View File

@ -17,6 +17,7 @@ import { AUDIT_ACTION_LOCALE_DEFAULTS, getAuditActionLocaleDefault } from './aud
import { writeLocaleModule } from './localeSerialize.ts'
import enUS from './locales/en-US.ts'
import jaJP from './locales/ja-JP.ts'
import koKR from './locales/ko-KR.ts'
import ruRU from './locales/ru-RU.ts'
import zhCN from './locales/zh-CN.ts'
@ -25,6 +26,7 @@ export const LOCALE_BUNDLES = {
'en-US': enUS,
'zh-CN': zhCN,
'ko-KR': koKR,
'ja-JP': jaJP,
'ru-RU': ruRU,
} as const
@ -512,7 +514,7 @@ export function findAllLocaleMessageCompileErrors(
type LocaleTree = Record<string, unknown>
const LOCALE_ORDER: LocaleName[] = ['en-US', 'zh-CN', 'ko-KR', 'ru-RU']
const LOCALE_ORDER: LocaleName[] = ['en-US', 'zh-CN', 'ko-KR', 'ru-RU', 'ja-JP']
const LOCALES_DIR = join(dirname(fileURLToPath(import.meta.url)), 'locales')
function getLocaleValueAtPathParts(current: unknown, parts: string[]): unknown {

View File

@ -4498,6 +4498,7 @@ export default {
enUS: 'English',
ruRU: 'Русский',
koKR: '한국어',
jaJP: '日本語',
selectLanguage: 'Select Language',
language: 'Language',
languageDescription: 'Select interface display language',

File diff suppressed because it is too large Load Diff

View File

@ -2341,6 +2341,7 @@ export default {
enUS: 'English',
ruRU: 'Русский',
koKR: '한국어',
jaJP: '日本語',
selectLanguage: '언어 선택',
language: '언어',
languageDescription: '인터페이스 표시 언어 선택',

View File

@ -2341,6 +2341,7 @@ export default {
enUS: 'English',
ruRU: 'Русский',
koKR: '한국어',
jaJP: '日本語',
selectLanguage: 'Выбрать язык',
language: 'Язык',
languageDescription: 'Выберите язык отображения интерфейса',

View File

@ -2,6 +2,7 @@ import assert from 'node:assert/strict'
import test from 'node:test'
import enUS from './en-US.ts'
import jaJP from './ja-JP.ts'
import koKR from './ko-KR.ts'
import ruRU from './ru-RU.ts'
import zhCN from './zh-CN.ts'
@ -35,6 +36,7 @@ const localeChecks = [
{ name: 'zh-CN', locale: zhCN, forbidden: /租户/ },
{ name: 'en-US', locale: enUS, forbidden: /\btenants?\b/i },
{ name: 'ko-KR', locale: koKR, forbidden: /테넌트/ },
{ name: 'ja-JP', locale: jaJP, forbidden: /テナント/ },
{ name: 'ru-RU', locale: ruRU, forbidden: /(?:тенант|арендатор)/i },
]

View File

@ -2343,6 +2343,7 @@ export default {
enUS: 'English',
ruRU: 'Русский',
koKR: '한국어',
jaJP: '日本語',
selectLanguage: '选择语言',
language: '语言',
languageDescription: '选择界面显示语言',

View File

@ -9,6 +9,7 @@ test('resolveDefaultLocale prefers runtime over build-time default', () => {
test('resolveDefaultLocale falls back to build-time then built-in default', () => {
assert.equal(resolveDefaultLocale('', 'ko-KR'), 'ko-KR')
assert.equal(resolveDefaultLocale('', 'ja-JP'), 'ja-JP')
assert.equal(resolveDefaultLocale(undefined, undefined), BUILT_IN_DEFAULT)
})

View File

@ -1,4 +1,4 @@
export const SUPPORTED_LOCALES = ['zh-CN', 'en-US', 'ru-RU', 'ko-KR'] as const
export const SUPPORTED_LOCALES = ['zh-CN', 'en-US', 'ru-RU', 'ko-KR', 'ja-JP'] as const
export type SupportedLocale = (typeof SUPPORTED_LOCALES)[number]
export const BUILT_IN_DEFAULT: SupportedLocale = 'zh-CN'

View File

@ -438,7 +438,8 @@ const languageOptions = [
{ value: 'zh-CN', label: '简体中文', shortLabel: '中文', flag: '🇨🇳' },
{ value: 'en-US', label: 'English', shortLabel: 'EN', flag: '🇺🇸' },
{ value: 'ru-RU', label: 'Русский', shortLabel: 'RU', flag: '🇷🇺' },
{ value: 'ko-KR', label: '한국어', shortLabel: '한국어', flag: '🇰🇷' }
{ value: 'ko-KR', label: '한국어', shortLabel: '한국어', flag: '🇰🇷' },
{ value: 'ja-JP', label: '日本語', shortLabel: '日本語', flag: '🇯🇵' }
]
const currentLanguage = computed(() => locale.value)

View File

@ -6,6 +6,7 @@ const component = readFileSync(new URL('./BatchTagDialog.vue', import.meta.url),
const zhCN = readFileSync(new URL('../../../i18n/locales/zh-CN.ts', import.meta.url), 'utf8')
const enUS = readFileSync(new URL('../../../i18n/locales/en-US.ts', import.meta.url), 'utf8')
const koKR = readFileSync(new URL('../../../i18n/locales/ko-KR.ts', import.meta.url), 'utf8')
const jaJP = readFileSync(new URL('../../../i18n/locales/ja-JP.ts', import.meta.url), 'utf8')
const ruRU = readFileSync(new URL('../../../i18n/locales/ru-RU.ts', import.meta.url), 'utf8')
test('uses a compact flat dialog with selected and available sections', () => {
@ -32,7 +33,7 @@ test('uses a compact flat dialog with selected and available sections', () => {
})
test('defines batch tag dialog strings in every supported locale', () => {
for (const locale of [zhCN, enUS, koKR, ruRU]) {
for (const locale of [zhCN, enUS, koKR, jaJP, ruRU]) {
assert.match(locale, /batchTagDialogHeading:/)
assert.match(locale, /batchTagSelectedSection:/)
assert.match(locale, /batchTagAvailableSection:/)

View File

@ -8,6 +8,7 @@ const locales = [
readFileSync(new URL('../../../i18n/locales/zh-CN.ts', import.meta.url), 'utf8'),
readFileSync(new URL('../../../i18n/locales/en-US.ts', import.meta.url), 'utf8'),
readFileSync(new URL('../../../i18n/locales/ko-KR.ts', import.meta.url), 'utf8'),
readFileSync(new URL('../../../i18n/locales/ja-JP.ts', import.meta.url), 'utf8'),
readFileSync(new URL('../../../i18n/locales/ru-RU.ts', import.meta.url), 'utf8'),
]

View File

@ -6,6 +6,7 @@ const component = readFileSync(new URL('./TagEditDialog.vue', import.meta.url),
const zhCN = readFileSync(new URL('../../../i18n/locales/zh-CN.ts', import.meta.url), 'utf8')
const enUS = readFileSync(new URL('../../../i18n/locales/en-US.ts', import.meta.url), 'utf8')
const koKR = readFileSync(new URL('../../../i18n/locales/ko-KR.ts', import.meta.url), 'utf8')
const jaJP = readFileSync(new URL('../../../i18n/locales/ja-JP.ts', import.meta.url), 'utf8')
const ruRU = readFileSync(new URL('../../../i18n/locales/ru-RU.ts', import.meta.url), 'utf8')
test('uses a compact flat dialog with selected and available sections', () => {
@ -33,7 +34,7 @@ test('uses a compact flat dialog with selected and available sections', () => {
})
test('defines the short dialog heading in every supported locale', () => {
for (const locale of [zhCN, enUS, koKR, ruRU]) {
for (const locale of [zhCN, enUS, koKR, jaJP, ruRU]) {
assert.match(locale, /tagEditDialogHeading:/)
assert.match(locale, /tagEditSelectedSection:/)
assert.match(locale, /tagEditAvailableSection:/)

View File

@ -23,6 +23,7 @@
<t-option value="en-US" :label="$t('language.enUS')">{{ $t('language.enUS') }}</t-option>
<t-option value="ru-RU" :label="$t('language.ruRU')">{{ $t('language.ruRU') }}</t-option>
<t-option value="ko-KR" :label="$t('language.koKR')">{{ $t('language.koKR') }}</t-option>
<t-option value="ja-JP" :label="$t('language.jaJP')">{{ $t('language.jaJP') }}</t-option>
</t-select>
</div>
</div>

View File

@ -131,6 +131,7 @@ var supportedEmbedLocales = map[string]struct{}{
"zh-CN": {},
"en-US": {},
"ko-KR": {},
"ja-JP": {},
"ru-RU": {},
}

View File

@ -63,7 +63,7 @@ type EmbedChannel struct {
| `widget_position` | string | `bottom-right` | `bottom-right` \| `bottom-left` \| `top-right` \| `top-left` |
| `allow_web_search` | bool | `false` | 访客侧是否允许联网搜索开关 |
| `allow_file_upload` | bool | `false` | 访客侧是否允许上传图片/文件 |
| `default_locale` | string | 空(跟随浏览器) | `zh-CN` \| `en-US` \| `ko-KR` \| `ru-RU` |
| `default_locale` | string | 空(跟随浏览器) | `zh-CN` \| `en-US` \| `ko-KR` \| `ja-JP` \| `ru-RU` |
| `webhook_url` | string | 空 | 事件回调地址,**必须为 HTTPS 且通过 SSRF 校验**(禁止内网/链路本地地址) |
| `webhook_secret` | string | 空 | webhook 签名密钥(API 响应中永不回显) |

View File

@ -131,7 +131,7 @@ API key:`manage_channels`/full。Handler: `internal/handler/embed_channel.go`
| `header_title_mode` | string | 否 | `channel`(默认)/`session` |
| `show_suggested_questions` | bool | 否 | 默认 true |
| `allow_web_search` / `allow_file_upload` | bool | 否 | 默认 false |
| `default_locale` | string | 否 | `zh-CN/en-US/ko-KR/ru-RU`/空(跟随浏览器) |
| `default_locale` | string | 否 | `zh-CN/en-US/ko-KR/ja-JP/ru-RU`/空(跟随浏览器) |
| `webhook_url` / `webhook_secret` | string | 否 | 访客事件 webhook |
| `agent_id` | string | 否 | 绑定 Agent |

View File

@ -18,7 +18,7 @@ WeKnora 的 Web 前端是一个基于 **Vue 3 + TypeScript + Vite** 的单页应
| UI 组件库 | TDesign (tdesign-vue-next) | ^1.19.2 | 配合 `tdesign-icons-vue-next` 0.4.4(版本被 overrides 锁定) |
| 状态管理 | Pinia | ^3.0.4 | 全部 store 位于 `frontend/src/stores/` |
| 路由 | Vue Router | ^4.5.0 | `createWebHistory`,见 `frontend/src/router/index.ts` |
| 多语言 | vue-i18n | ^11.4.2 | zh-CN / en-US / ru-RU / ko-KR |
| 多语言 | vue-i18n | ^11.4.2 | zh-CN / en-US / ru-RU / ko-KR / ja-JP |
| HTTP | axios | ^1.16.0 | 统一实例封装于 `frontend/src/utils/request.ts` |
| SSE 流式 | @microsoft/fetch-event-source | ^2.0.1 | 聊天流式回复,见 `frontend/src/api/chat/streame.ts` |
| Markdown 渲染 | marked / marked-katex-extension / katex / highlight.js / mermaid | — | 聊天答案富文本渲染(公式、代码高亮、图表) |
@ -57,7 +57,7 @@ flowchart TB
subgraph io["数据访问层"]
API["API 封装 (src/api)<br/>axios 实例 + SSE 流式"]
I18N["多语言 (src/i18n)<br/>zh-CN / en-US / ru-RU / ko-KR"]
I18N["多语言 (src/i18n)<br/>zh-CN / en-US / ru-RU / ko-KR / ja-JP"]
WAILS["桌面绑定 (src/wailsjs)<br/>Wails 自动生成"]
end
@ -255,6 +255,7 @@ RAG 流水线的可视化进度(`views/chat/components/RagPipelineProgress.vue
- `en-US`(英语)
- `ru-RU`(俄语)
- `ko-KR`(韩语)
- `ja-JP`(日语)
- 语言选择持久化在 `localStorage` 的 `locale` key;axios 拦截器会把当前语言写入 `Accept-Language` 请求头,使后端返回本地化内容。
- 因部分翻译刻意内嵌 `<strong>` 标记(经 DOMPurify 消毒后 v-html 渲染),配置了 `warnHtmlMessage: false` 关闭 vue-i18n 的 HTML 告警。
- **Embed 独立 i18n**:访客侧嵌入页使用单独的 `frontend/src/i18n/embed.ts`(由 `embed-main.ts` 加载),管理端「网页嵌入」文案仍在主语言包中;`frontend/src/i18n/locales/embed/index.ts` 统一 re-export 语言归一化助手(支持从 URL 参数同步 embed 语言)。
@ -299,7 +300,7 @@ RAG 流水线的可视化进度(`views/chat/components/RagPipelineProgress.vue
`frontend/docker-entrypoint.sh`(运行时配置注入):
1. 生成 `/usr/share/nginx/html/config.js`,把 `MAX_FILE_SIZE_MB`(默认 50)与 `DEFAULT_LOCALE`(可选,默认空)写入 `window.__RUNTIME_CONFIG__` 供前端运行时读取;entrypoint 仅允许 `zh-CN|en-US|ru-RU|ko-KR`,非法值会被丢弃;
1. 生成 `/usr/share/nginx/html/config.js`,把 `MAX_FILE_SIZE_MB`(默认 50)与 `DEFAULT_LOCALE`(可选,默认空)写入 `window.__RUNTIME_CONFIG__` 供前端运行时读取;entrypoint 仅允许 `zh-CN|en-US|ru-RU|ko-KR|ja-JP`,非法值会被丢弃;
2. 用 `envsubst` 渲染 nginx 模板,可配置环境变量:`MAX_FILE_SIZE_MB`、`DEFAULT_LOCALE`、`APP_HOST`(默认 `app`)、`APP_PORT`(默认 `8080`)、`APP_SCHEME`(默认 `http`,远程 HTTPS 后端可设 `https`);
3. 前台启动 nginx。