mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-18 04:41:56 +00:00
* feat(i18n): localize /model command output
Reported by @tianma8888: when Chinese users run /model, the labels
("Provider:", "Context:", "_session only_", etc.) are still English.
This routes the static prose through the existing i18n catalog so it
follows display.language / HERMES_LANGUAGE.
Changes:
- locales/{en,zh,ja,de,es,fr,tr,uk}.yaml: add 17 keys under
gateway.model.* covering switched/provider/context/max_output/cost/
capabilities/prompt_caching/warning/saved_global/session_only_hint/
current_label/current_tag/more_models_suffix/usage_*.
- gateway/run.py _handle_model_command: replace hardcoded f-strings in
the picker callback, the text-list fallback, and the direct-switch
confirmation block with t("gateway.model.<key>", ...).
What stays English:
- model IDs, provider slugs, capability strings, cost figures, and the
"[Note: model was just switched...]" prepended to the model's next
prompt (LLM-facing, not user-facing).
- The two slightly-different session-only hints unify on a single key
with the em-dash phrasing.
Validation: tests/agent/test_i18n.py 27/27 passing (parity contract
holds), tests/gateway/ -k 'model or i18n' 74/74 passing.
* feat(i18n): localize all gateway slash command outputs
Expands the i18n catalog from 7 strings to 234 keys across 35 gateway
slash command handlers, so non-English users see localized output for
\`/profile\`, \`/status\`, \`/help\`, \`/personality\`, \`/voice\`, \`/reset\`,
\`/agents\`, \`/restart\`, \`/commands\`, \`/goal\`, \`/retry\`, \`/undo\`,
\`/sethome\`, \`/title\`, \`/yolo\`, \`/background\`, \`/approve\`, \`/deny\`,
\`/insights\`, \`/debug\`, \`/rollback\`, \`/reasoning\`, \`/fast\`,
\`/verbose\`, \`/footer\`, \`/compress\`, \`/topic\`, \`/kanban\`,
\`/resume\`, \`/branch\`, \`/usage\`, \`/reload-mcp\`, \`/reload-skills\`,
\`/update\`, \`/stop\` (plus the \`/model\` block already added in the
previous commit).
Reported by @tianma8888 — Chinese users want command output prose in
their language, not just the labels we already had.
Translations are hand-written for all 8 supported locales (en, zh, ja,
de, es, fr, tr, uk), matching each catalog's existing style: full-width
punctuation in zh, em-dashes in zh/ja/uk, French spaced colons,
German noun capitalization, etc.
What stays English (unchanged):
- Identifiers/values: model IDs, file paths, profile names, session IDs,
command flag names like --global, URLs, config keys.
- Backtick code spans: \`/foo\`, \`config.yaml\`.
- Log messages (logger.info/warning/error).
- LLM-facing system notes prepended to next prompt (e.g. [Note: model
was just switched...]).
- Strings produced by external modules (gateway_help_lines,
format_gateway, manual_compression_feedback) — those have their
own surfaces.
New shared keys for cross-handler boilerplate:
- gateway.shared.session_db_unavailable (5 call sites: branch, title,
resume, topic, _disable_telegram_topic_mode_for_chat)
- gateway.shared.session_not_found (1 site)
- gateway.shared.warn_passthrough (2 sites in /title's f"⚠️ {e}" pattern)
YAML gotcha fixed: \`yolo.on\` and \`yolo.off\` were originally written
unquoted, which YAML 1.1 parses as boolean True/False keys. Renamed to
\`yolo.enabled\` / \`yolo.disabled\` for both safety and clarity.
Test fix: tests/agent/test_i18n.py::test_t_missing_key_in_non_english_falls_back_to_english
now resets the catalog cache on teardown, so the fake "foo: English Foo"
locale doesn't poison the module-level cache for subsequent tests in
the same xdist worker. (Without this, every gateway slash command test
that shares a worker with the i18n suite would see the fake catalog.)
Validation:
- tests/agent/test_i18n.py: 27/27 (parity contract — every key in every
locale, matching placeholder tokens).
- tests/gateway/: 5077 passed, 0 failed (full gateway suite).
- 180 t() call sites added across 35 handlers; 1872 catalog entries
total (234 keys × 8 locales).
* feat(i18n): add 8 new locales — af, ko, it, ga, zh-hant, pt, ru, hu
Expands the static-message catalog from 8 → 16 languages, each with full
270-key parity against the English source-of-truth. Every locale now
covers the same surface PR #22914 added: approval prompts plus all 35
gateway slash command outputs.
New locales:
- af Afrikaans (community ask in #21961 by @GodsBoy; PRs #21962, #21970)
- ko Korean (PRs #20297 by @tmdgusya, #22285 by @project820)
- it Italian (PR #20371 by @leprincep35700)
- ga Irish/Gaeilge (PR #20962 by @ryanmcc09-dot)
- zh-hant Traditional Chinese (PRs #20523 by @jackey8616, #13140 by @anomixer)
- pt Portuguese (PRs #20443 by @pedroborges, #15737 by @carloshenriquecarniatto, #22063 by @Magaav)
- ru Russian (PR #22770 by @DrMaks22)
- hu Hungarian (PR #22336 by @lunasec007)
Each locale uses native-quality translations matching the existing tone
and conventions of the older 8 locales:
- zh-hant uses 繁體 characters with TW/HK technical vocabulary (軟體
not 软件, 連線 not 连接, 設定 not 设置, 訊息 not 消息, 工作階段 not 会话, 程式
not 程序, 預設 not 默认, 伺服器 not 服务器), full-width punctuation 「:()」.
- ko uses formal 합니다체 (습니다/합니다) register throughout.
- pt uses European Portuguese as baseline with neutral PT/BR vocabulary
where possible.
- ga uses standard An Caighdeán Oifigiúil; English loanwords retained
for tech terms without good Irish equivalents (gateway, API, JSON).
- All preserve {placeholder} tokens, backtick code spans, slash commands,
brand names (Hermes, MCP, TTS, YOLO, OpenAI, Telegram, etc.), and emoji.
Aliases added in agent/i18n.py:
- af-za, Afrikaans → af
- ko-kr, Korean, 한국어 → ko
- it-it, italiano → it
- ga-ie, Irish, Gaeilge → ga
- zh-tw, zh-hk, zh-mo, traditional-chinese → zh-hant (note: zh-tw used to
alias to zh; now aliases to its own zh-hant catalog)
- zh-cn, zh-hans, zh-sg → zh (unchanged from before)
- pt-pt, pt-br, brazilian, portuguese → pt
- ru-ru, Russian, русский → ru
- hu-hu, Magyar → hu
The zh-tw alias re-routing is intentional: previously typing 'zh-TW' got
the Simplified Chinese catalog (wrong vocabulary for Taiwan/HK users).
Now those users get the proper Traditional Chinese catalog.
Validation:
- tests/agent/test_i18n.py: 43/43 (parity contract holds for all 16
languages × 270 keys = 4320 catalog entries, with matching placeholder
tokens).
- E2E alias resolution verified for all 19 alias inputs (Afrikaans, ko-KR,
한국어, italiano, Gaeilge, zh-TW, zh-HK, traditional-chinese, pt-BR,
brazilian, Magyar, etc.).
- tests/gateway/: 5198 passed (3 pre-existing TTS routing failures
unrelated to i18n).
Credit to all contributors whose PRs surfaced these language requests.
Their original PRs may now be closed as superseded with credit.
* feat(dashboard-i18n): add 14 web dashboard locales matching the static catalog
Brings the React dashboard (web/src/) up to the same 16-language
coverage the static catalog already has after the previous commits in
this PR. The Translations interface is TypeScript-typed, so every new
locale must provide every key — tsc -b is the parity guard.
Languages added (each is a complete 429-line locale file):
- af Afrikaans
- ja Japanese (PR #22513 by @snuffxxx surfaced this)
- de German (PR #21749 by @mag1art)
- es Spanish (PR #21749)
- fr French (PRs #21749, #10310 by @foXaCe)
- tr Turkish
- uk Ukrainian
- ko Korean (PRs #21749, #18894 by @ovstng, #22285 by @project820)
- it Italian
- ga Irish (Gaeilge)
- zh-hant Traditional Chinese (PR #13140 by @anomixer)
- pt Portuguese (PRs #22063 by @Magaav, #22182 by @wesleysimplicio, #15737 by @carloshenriquecarniatto)
- ru Russian (PRs #21749, #22770 by @DrMaks22)
- hu Hungarian (PR #22336 by @lunasec007)
Each translation covers all 15 namespaces with full key parity vs en.ts,
preserves every {placeholder} token verbatim, keeps identifiers
untranslated (brand names, file paths, cron expressions, code spans),
translates the language.switchTo tooltip into the target language, and
matches existing tone conventions (zh-hant uses TW/HK vocab; ja uses
formal desu/masu; ko uses formal seumnida register; ga uses An
Caighdean Oifigiuil with English loanwords for tech vocab without good
Irish equivalents).
Plumbing:
- web/src/i18n/types.ts: Locale union expanded to all 16 codes.
- web/src/i18n/context.tsx: imports all 16 catalogs; exports
LOCALE_META (endonym + flag per locale); isLocale() type guard.
- web/src/i18n/index.ts: re-export LOCALE_META.
- web/src/components/LanguageSwitcher.tsx: replaced two-state EN-ZH
toggle with a click-to-open dropdown listing all 16 languages.
Note: zh-hant.ts exports zhHant (camelCase) since hyphen is invalid in
a JS identifier; the canonical 'zh-hant' string keys it in TRANSLATIONS.
Validation:
- npx tsc -b: 0 errors. Every locale satisfies Translations.
- npm run build (tsc + vite production): green, 2062 modules.
- Each locale file is exactly 429 lines.
Out of scope: plugin dashboards (kanban/achievements ship as prebuilt
bundles with no source in repo); Docusaurus docs (separate surface);
TUI (no i18n yet).
* feat(plugin-i18n): localize achievements + kanban plugin dashboards across all 16 locales
Brings the two shipped plugin dashboards (hermes-achievements, kanban)
under the same i18n umbrella as the core dashboard PR #22914 just
established. Both bundles now read user-facing strings from the host's
i18n catalog via SDK.useI18n() instead of hardcoded English.
## Approach
Plugin dashboards ship as prebuilt IIFE bundles in
plugins/<name>/dashboard/dist/index.js — no build step, no source in
repo (upstream-authored, vendored as compiled JS). Earlier contributor
PRs (#22594, #22595, #18747) tried direct edits but didn't actually
wire the bundles to read translations.
This change does the wiring properly:
1. Each bundle gets a useI18n shim at IIFE scope:
const useI18n = SDK.useI18n
|| function () { return { t: { kanban: null }, locale: "en" }; };
Older host SDKs without useI18n still load the bundle and render
English fallbacks.
2. A small tx(t, path, fallback, vars) helper resolves dotted keys
under the plugin's namespace (t.kanban.* or t.achievements.*) and
interpolates {placeholder} tokens.
3. Every React component starts with const { t } = useI18n() and
each user-visible string is wrapped in tx(t, "key", "English fallback").
Helpers called outside React components (window.prompt callers,
constants used during init) take t as a parameter.
4. Top-level constants that were English dictionaries (COLUMN_LABEL,
COLUMN_HELP, DESTRUCTIVE_TRANSITIONS, DIAGNOSTIC_EVENT_LABELS in
kanban) become getColumnLabel(t, status)-style functions backed by
FALLBACK_* dictionaries.
## Translations added
Two new top-level namespaces added to the dashboard's TypeScript-typed
Translations interface:
- achievements: ~70 keys covering the hero, scan banner, achievement
card, share dialog, stats, filters, and empty states.
- kanban: ~145 keys covering the board, columns (with nested
columnLabels and columnHelp sub-dicts), card detail panel,
bulk-actions toolbar, dependency editor, board switcher, and
diagnostic callouts.
Each key is provided across all 16 supported locales:
en, zh, zh-hant, ja, de, es, fr, tr, uk, af, ko, it, ga, pt, ru, hu.
Total new translation entries: ~3,440 (215 keys × 16 locales).
## What stays English (deliberate)
- API paths, CSS class names, data-* attributes, JSON keys, regex
strings, URLs, file paths (~/.hermes/kanban.db, boards/_archived/).
- State identifier strings used as lookup keys (triage / todo / ready /
running / blocked / done / archived) — labels translate, key strings
don't.
- The PNG share-card text rendered to canvas in the achievements
ShareDialog (HERMES AGENT watermark, UNLOCKED stamp, tier names) —
these become part of a globally-shared image and stay English.
- localStorage keys (hermes.kanban.selectedBoard).
- Brand names (Kanban, Hermes, WebSocket, Nous Research).
## Contributor credit
PR #22594 by @02356abc and PR #22595 by @02356abc supplied the
en + zh kanban namespace skeleton (145 keys); used as the en source-
of-truth in this commit and translated to the other 14 locales.
PR #18747 by @laolaoshiren first surfaced the achievements
localization request.
## Validation
- npx tsc -b: 0 errors. All 16 locale .ts files satisfy the
Translations type with full key parity.
- npm run build (tsc + vite production build): green, 2062 modules,
1.56MB JS / 95KB CSS, ~2.5s build.
- node --check on both plugin bundles: parse cleanly.
- 126 tx() call sites in kanban, 46 in achievements.
## Out of scope
- TUI (ui-tui/) has no i18n infrastructure yet.
- Docusaurus docs (website/i18n/) — already had zh-Hans; expanding
is a separate translation workstream (Thai / Korean / Hindi PRs).
350 lines
29 KiB
YAML
350 lines
29 KiB
YAML
# Hermes 静的メッセージカタログ -- 日本語
|
||
# See locales/en.yaml for the source of truth; keep keys in sync.
|
||
|
||
approval:
|
||
dangerous_header: "⚠️ 危険なコマンド: {description}"
|
||
choose_long: " [o]今回のみ | [s]セッション中 | [a]常に許可 | [d]拒否"
|
||
choose_short: " [o]今回のみ | [s]セッション中 | [d]拒否"
|
||
prompt_long: " 選択 [o/s/a/D]: "
|
||
prompt_short: " 選択 [o/s/D]: "
|
||
timeout: " ⏱ タイムアウト — コマンドを拒否しました"
|
||
allowed_once: " ✓ 今回のみ許可"
|
||
allowed_session: " ✓ このセッション中は許可"
|
||
allowed_always: " ✓ 永続的な許可リストに追加"
|
||
denied: " ✗ 拒否しました"
|
||
cancelled: " ✗ キャンセルしました"
|
||
blocklist_message: "このコマンドは無条件ブロックリストに含まれており、承認できません。"
|
||
|
||
gateway:
|
||
approval_expired: "⚠️ 承認の有効期限が切れました(エージェントはもう待機していません)。エージェントに再試行を依頼してください。"
|
||
draining: "⏳ 再起動前に {count} 個のアクティブエージェントの終了を待っています..."
|
||
goal_cleared: "✓ 目標をクリアしました。"
|
||
no_active_goal: "アクティブな目標はありません。"
|
||
config_read_failed: "⚠️ config.yaml を読み込めませんでした: {error}"
|
||
config_save_failed: "⚠️ 設定を保存できませんでした: {error}"
|
||
|
||
model:
|
||
error_prefix: "エラー: {error}"
|
||
switched: "モデルを `{model}` に切り替えました"
|
||
provider_label: "プロバイダー: {provider}"
|
||
context_label: "コンテキスト: {tokens} トークン"
|
||
max_output_label: "最大出力: {tokens} トークン"
|
||
cost_label: "コスト: {cost}"
|
||
capabilities_label: "機能: {capabilities}"
|
||
prompt_caching_enabled: "プロンプトキャッシュ: 有効"
|
||
warning_prefix: "警告: {warning}"
|
||
saved_global: "config.yaml に保存しました (`--global`)"
|
||
session_only_hint: "_(このセッションのみ — 永続化するには `--global` を追加)_"
|
||
current_label: "現在: `{model}` ({provider})"
|
||
current_tag: " (現在)"
|
||
more_models_suffix: " (他 {count} 件)"
|
||
usage_switch_model: "`/model <name>` — モデルを切り替え"
|
||
usage_switch_provider: "`/model <name> --provider <slug>` — プロバイダーを切り替え"
|
||
usage_persist: "`/model <name> --global` — 永続化"
|
||
|
||
agents:
|
||
header: "🤖 **アクティブなエージェントとタスク**"
|
||
active_agents: "**アクティブなエージェント:** {count}"
|
||
this_chat: " · このチャット"
|
||
more: "... 他に {count} 件"
|
||
running_processes: "**実行中のバックグラウンドプロセス:** {count}"
|
||
async_jobs: "**ゲートウェイ非同期ジョブ:** {count}"
|
||
none: "アクティブなエージェントや実行中のタスクはありません。"
|
||
state_starting: "起動中"
|
||
state_running: "実行中"
|
||
|
||
approve:
|
||
no_pending: "承認待ちのコマンドはありません。"
|
||
once_singular: "✅ コマンドを承認しました。エージェントを再開しています..."
|
||
once_plural: "✅ コマンドを承認しました ({count} 件)。エージェントを再開しています..."
|
||
session_singular: "✅ コマンドを承認しました (このセッション中はパターンを許可)。エージェントを再開しています..."
|
||
session_plural: "✅ コマンドを承認しました (このセッション中はパターンを許可) ({count} 件)。エージェントを再開しています..."
|
||
always_singular: "✅ コマンドを承認しました (パターンを永続的に許可)。エージェントを再開しています..."
|
||
always_plural: "✅ コマンドを承認しました (パターンを永続的に許可) ({count} 件)。エージェントを再開しています..."
|
||
|
||
background:
|
||
usage: "使い方: /background <プロンプト>\n例: /background 今日の HN トップ記事を要約して\n\nプロンプトを別のセッションで実行します。チャットを続けられます — 完了したらここに結果が表示されます。"
|
||
started: "🔄 バックグラウンドタスクを開始しました: 「{preview}」\nタスク ID: {task_id}\nチャットを続けられます — 完了したらここに結果が表示されます。"
|
||
|
||
branch:
|
||
db_unavailable: "セッションデータベースは利用できません。"
|
||
no_conversation: "分岐する会話がありません — まずメッセージを送信してください。"
|
||
create_failed: "ブランチの作成に失敗しました: {error}"
|
||
switch_failed: "ブランチは作成されましたが、切り替えに失敗しました。"
|
||
branched_one: "⑂ **{title}** に分岐しました ({count} メッセージをコピー)\n元: `{parent}`\nブランチ: `{new}`\n元のセッションに戻るには `/resume` を使用してください。"
|
||
branched_many: "⑂ **{title}** に分岐しました ({count} メッセージをコピー)\n元: `{parent}`\nブランチ: `{new}`\n元のセッションに戻るには `/resume` を使用してください。"
|
||
|
||
commands:
|
||
usage: "使い方: `/commands [page]`"
|
||
skill_header: "⚡ **スキルコマンド**:"
|
||
default_desc: "スキルコマンド"
|
||
none: "利用可能なコマンドはありません。"
|
||
header: "📚 **コマンド** (合計 {total}、{page}/{total_pages} ページ)"
|
||
nav_prev: "`/commands {page}` ← 前へ"
|
||
nav_next: "次へ → `/commands {page}`"
|
||
out_of_range: "_(要求されたページ {requested} は範囲外のため、{page} ページを表示しています。)_"
|
||
|
||
compress:
|
||
not_enough: "圧縮するための会話が不十分です (少なくとも 4 件のメッセージが必要)。"
|
||
no_provider: "プロバイダーが構成されていません — 圧縮できません。"
|
||
nothing_to_do: "まだ圧縮するものがありません (トランスクリプトはすべて保護されたコンテキストのままです)。"
|
||
focus_line: "フォーカス: \"{topic}\""
|
||
summary_failed: "⚠️ 要約の生成に失敗しました ({error})。{count} 件の履歴メッセージが削除され、プレースホルダーに置き換えられました。以前のコンテキストは復元できません。auxiliary.compression モデルの設定を確認してください。"
|
||
aux_failed: "ℹ️ 構成された圧縮モデル `{model}` が失敗しました ({error})。メインモデルで復旧しました — コンテキストは無傷です — config.yaml の `auxiliary.compression.model` を確認するとよいでしょう。"
|
||
failed: "圧縮に失敗しました: {error}"
|
||
|
||
debug:
|
||
upload_failed: "✗ デバッグレポートのアップロードに失敗しました: {error}"
|
||
header: "**デバッグレポートをアップロードしました:**"
|
||
auto_delete: "⏱ ペーストは 6 時間後に自動削除されます。"
|
||
full_logs_hint: "完全なログのアップロードには、CLI から `hermes debug share` を使用してください。"
|
||
share_hint: "サポートを受けるには、このリンクを Hermes チームに共有してください。"
|
||
|
||
deny:
|
||
stale: "❌ コマンドを拒否しました (承認は期限切れでした)。"
|
||
no_pending: "拒否待ちのコマンドはありません。"
|
||
denied_singular: "❌ コマンドを拒否しました。"
|
||
denied_plural: "❌ コマンドを拒否しました ({count} 件)。"
|
||
|
||
fast:
|
||
not_supported: "⚡ /fast は Priority Processing をサポートする OpenAI モデルでのみ利用できます。"
|
||
status: "⚡ Priority Processing\n\n現在のモード: `{mode}`\n\n_使い方:_ `/fast <normal|fast|status>`"
|
||
unknown_arg: "⚠️ 不明な引数: `{arg}`\n\n**有効なオプション:** normal、fast、status"
|
||
saved: "⚡ ✓ Priority Processing: **{label}** (設定に保存しました)\n_(次のメッセージから有効)_"
|
||
session_only: "⚡ ✓ Priority Processing: **{label}** (このセッションのみ)"
|
||
label_fast: "FAST"
|
||
label_normal: "NORMAL"
|
||
status_fast: "fast"
|
||
status_normal: "normal"
|
||
|
||
footer:
|
||
status: "📎 ランタイムフッター: **{state}**\nフィールド: `{fields}`\nプラットフォーム: `{platform}`"
|
||
usage: "使い方: `/footer [on|off|status]`"
|
||
saved: "📎 ランタイムフッター: **{state}**{example}\n_(グローバルに保存しました — 次のメッセージから有効)_"
|
||
example_line: "\n例: `{preview}`"
|
||
state_on: "ON"
|
||
state_off: "OFF"
|
||
|
||
goal:
|
||
unavailable: "このセッションでは目標機能を利用できません。"
|
||
no_goal_set: "目標が設定されていません。"
|
||
paused: "⏸ 目標を一時停止しました: {goal}"
|
||
no_resume: "再開する目標がありません。"
|
||
resumed: "▶ 目標を再開しました: {goal}\nメッセージを送って続行するか、お待ちください — 次のターンで続きを進めます。"
|
||
invalid: "無効な目標: {error}"
|
||
set: "⊙ 目標を設定しました ({budget} ターンの予算): {goal}\n目標が完了するか、一時停止/解除されるか、予算が尽きるまで作業を続けます。\nコントロール: /goal status · /goal pause · /goal resume · /goal clear"
|
||
|
||
help:
|
||
header: "📖 **Hermes コマンド**\n"
|
||
skill_header: "\n⚡ **スキルコマンド** ({count} 件アクティブ):"
|
||
more_use_commands: "\n... 他に {count} 件。完全なページ分けリストは `/commands` で確認してください。"
|
||
|
||
insights:
|
||
invalid_days: "--days の値が無効です: {value}"
|
||
error: "インサイトの生成中にエラーが発生しました: {error}"
|
||
|
||
kanban:
|
||
error_prefix: "⚠ kanban エラー: {error}"
|
||
subscribed_suffix: "(購読しました — {task_id} が完了またはブロックされたときに通知されます)"
|
||
truncated_suffix: "… (切り詰めました; 完全な出力にはターミナルで `hermes kanban …` を使用してください)"
|
||
no_output: "(出力なし)"
|
||
|
||
personality:
|
||
none_configured: "`{path}/config.yaml` に人格が設定されていません"
|
||
header: "🎭 **利用可能な人格**\n"
|
||
none_option: "• `none` — (人格オーバーレイなし)"
|
||
item: "• `{name}` — {preview}"
|
||
usage: "\n使い方: `/personality <name>`"
|
||
save_failed: "⚠️ 人格変更の保存に失敗しました: {error}"
|
||
cleared: "🎭 人格をクリアしました — 基本のエージェント動作を使用します。\n_(次のメッセージから有効)_"
|
||
set_to: "🎭 人格を **{name}** に設定しました\n_(次のメッセージから有効)_"
|
||
unknown: "不明な人格: `{name}`\n\n利用可能: {available}"
|
||
|
||
profile:
|
||
header: "👤 **プロファイル:** `{profile}`"
|
||
home: "📂 **ホーム:** `{home}`"
|
||
|
||
reasoning:
|
||
level_default: "medium (デフォルト)"
|
||
level_disabled: "none (無効)"
|
||
scope_session: "セッションのオーバーライド"
|
||
scope_global: "グローバル設定"
|
||
status: "🧠 **推論設定**\n\n**強度:** `{level}`\n**スコープ:** {scope}\n**表示:** {display}\n\n_使い方:_ `/reasoning <none|minimal|low|medium|high|xhigh|reset|show|hide> [--global]`"
|
||
display_on: "オン ✓"
|
||
display_off: "オフ"
|
||
display_set_on: "🧠 ✓ 推論表示: **オン**\n**{platform}** 上で各応答の前にモデルの思考が表示されます。"
|
||
display_set_off: "🧠 ✓ **{platform}** での推論表示: **オフ**"
|
||
reset_global_unsupported: "⚠️ `/reasoning reset --global` はサポートされていません。グローバルのデフォルトを変更するには `/reasoning <level> --global` を使用してください。"
|
||
reset_done: "🧠 ✓ セッションの推論オーバーライドをクリアしました。グローバル設定にフォールバックします。"
|
||
unknown_arg: "⚠️ 不明な引数: `{arg}`\n\n**有効なレベル:** none, minimal, low, medium, high, xhigh\n**表示:** show, hide\n**永続化:** セッションを越えて保存するには `--global` を追加"
|
||
set_global: "🧠 ✓ 推論強度を `{effort}` に設定しました (設定に保存)\n_(次のメッセージから有効)_"
|
||
set_global_save_failed: "🧠 ✓ 推論強度を `{effort}` に設定しました (セッションのみ — 設定の保存に失敗)\n_(次のメッセージから有効)_"
|
||
set_session: "🧠 ✓ 推論強度を `{effort}` に設定しました (セッションのみ — 永続化するには `--global` を追加)\n_(次のメッセージから有効)_"
|
||
|
||
reload_mcp:
|
||
cancelled: "🟡 /reload-mcp をキャンセルしました。MCP ツールは変更されていません。"
|
||
always_followup: "ℹ️ 今後の `/reload-mcp` は確認なしで実行されます。`config.yaml` で `approvals.mcp_reload_confirm: true` を設定すると再有効化できます。"
|
||
confirm_prompt: "⚠️ **/reload-mcp の確認**\n\nMCP サーバーを再読み込みすると、このセッションのツールセットが再構築され、**プロバイダーのプロンプトキャッシュが無効化されます** — 次のメッセージで完全な入力トークンが再送信されます。長コンテキストや高推論モデルではコストが高くなる可能性があります。\n\n選択してください:\n• **一度だけ承認** — 今すぐ再読み込み\n• **常に承認** — 今すぐ再読み込みし、このプロンプトを永続的に非表示\n• **キャンセル** — MCP ツールを変更しない\n\n_テキスト代替: `/approve`、`/always`、または `/cancel` と返信してください。_"
|
||
header: "🔄 **MCP サーバーを再読み込みしました**\n"
|
||
reconnected: "♻️ 再接続: {names}"
|
||
added: "➕ 追加: {names}"
|
||
removed: "➖ 削除: {names}"
|
||
none_connected: "接続中の MCP サーバーはありません。"
|
||
tools_available: "\n🔧 {servers} 台のサーバーから {tools} 個のツールが利用可能"
|
||
failed: "❌ MCP の再読み込みに失敗しました: {error}"
|
||
|
||
reload_skills:
|
||
header: "🔄 **スキルを再読み込みしました**\n"
|
||
no_new: "新しいスキルは検出されませんでした。"
|
||
total: "\n📚 {count} 個のスキルが利用可能"
|
||
added_header: "➕ **追加されたスキル:**"
|
||
removed_header: "➖ **削除されたスキル:**"
|
||
item_with_desc: " - {name}: {desc}"
|
||
item_no_desc: " - {name}"
|
||
failed: "❌ スキルの再読み込みに失敗しました: {error}"
|
||
|
||
reset:
|
||
header_default: "✨ セッションをリセットしました。新たに開始します。"
|
||
header_new: "✨ 新しいセッションを開始しました。"
|
||
header_titled: "✨ 新しいセッションを開始しました: {title}"
|
||
title_rejected: "\n⚠️ タイトルが拒否されました: {error}"
|
||
title_error_untitled: "\n⚠️ {error} — タイトルなしでセッションを開始しました。"
|
||
title_empty_untitled: "\n⚠️ クリーンアップ後にタイトルが空になりました — タイトルなしでセッションを開始しました。"
|
||
tip: "\n✦ ヒント: {tip}"
|
||
|
||
restart:
|
||
in_progress: "⏳ ゲートウェイの再起動はすでに進行中です..."
|
||
restarting: "♻ ゲートウェイを再起動しています。60 秒以内に通知が届かない場合は、コンソールで `hermes gateway restart` を実行してください。"
|
||
|
||
resume:
|
||
db_unavailable: "セッションデータベースは利用できません。"
|
||
no_named_sessions: "名前付きセッションが見つかりません。\n`/title セッション名` で現在のセッションに名前を付けると、後で `/resume セッション名` で戻れます。"
|
||
list_header: "📋 **名前付きセッション**\n"
|
||
list_item: "• **{title}**{preview_part}"
|
||
list_preview_suffix: " — _{preview}_"
|
||
list_footer: "\n使い方: `/resume <セッション名>`"
|
||
list_failed: "セッションを一覧表示できませんでした: {error}"
|
||
not_found: "'**{name}**' に一致するセッションが見つかりません。\n引数なしで `/resume` を実行すると利用可能なセッションを表示します。"
|
||
already_on: "📌 既にセッション **{name}** にいます。"
|
||
switch_failed: "セッションの切り替えに失敗しました。"
|
||
resumed_one: "↻ セッション **{title}** を再開しました ({count} メッセージ)。会話を復元しました。"
|
||
resumed_many: "↻ セッション **{title}** を再開しました ({count} メッセージ)。会話を復元しました。"
|
||
resumed_no_count: "↻ セッション **{title}** を再開しました。会話を復元しました。"
|
||
|
||
retry:
|
||
no_previous: "再試行する前のメッセージがありません。"
|
||
|
||
rollback:
|
||
not_enabled: "チェックポイントは有効になっていません。\nconfig.yaml で有効にしてください:\n```\ncheckpoints:\n enabled: true\n```"
|
||
none_found: "{cwd} のチェックポイントが見つかりません"
|
||
invalid_number: "無効なチェックポイント番号です。1-{max} を使用してください。"
|
||
restored: "✅ チェックポイント {hash} に復元しました: {reason}\nロールバック前のスナップショットが自動的に保存されました。"
|
||
restore_failed: "❌ {error}"
|
||
|
||
set_home:
|
||
save_failed: "ホームチャンネルを保存できませんでした: {error}"
|
||
success: "✅ ホームチャンネルを **{name}** (ID: {chat_id}) に設定しました。\nCron ジョブとプラットフォーム間メッセージはここに配信されます。"
|
||
|
||
status:
|
||
header: "📊 **Hermes ゲートウェイ状態**"
|
||
session_id: "**セッション ID:** `{session_id}`"
|
||
title: "**タイトル:** {title}"
|
||
created: "**作成日時:** {timestamp}"
|
||
last_activity: "**最終アクティビティ:** {timestamp}"
|
||
tokens: "**トークン:** {tokens}"
|
||
agent_running: "**エージェント実行中:** {state}"
|
||
state_yes: "はい ⚡"
|
||
state_no: "いいえ"
|
||
queued: "**キュー内の後続:** {count}"
|
||
platforms: "**接続プラットフォーム:** {platforms}"
|
||
|
||
stop:
|
||
stopped_pending: "⚡ 停止しました。エージェントはまだ開始していません — このセッションを続行できます。"
|
||
stopped: "⚡ 停止しました。このセッションを続行できます。"
|
||
no_active: "停止できるアクティブなタスクはありません。"
|
||
|
||
title:
|
||
db_unavailable: "セッションデータベースは利用できません。"
|
||
warn_prefix: "⚠️ {error}"
|
||
empty_after_clean: "⚠️ クリーンアップ後にタイトルが空になりました。印字可能な文字を使用してください。"
|
||
set_to: "✏️ セッションタイトルを設定しました: **{title}**"
|
||
not_found: "データベースにセッションが見つかりません。"
|
||
current_with_title: "📌 セッション: `{session_id}`\nタイトル: **{title}**"
|
||
current_no_title: "📌 セッション: `{session_id}`\nタイトル未設定。使い方: `/title セッション名`"
|
||
|
||
topic:
|
||
not_telegram_dm: "/topic コマンドは Telegram のプライベートチャットでのみ利用できます。"
|
||
no_session_db: "セッションデータベースを利用できません。"
|
||
unauthorized: "この bot で /topic を使用する権限がありません。"
|
||
restore_needs_topic: "セッションを復元するには、まず Telegram topic を作成または開いてから、その topic 内で /topic <session-id> を送信してください。新しい topic を作成するには、All Messages を開いて任意のメッセージを送信してください。"
|
||
topics_disabled: "この bot ではまだ Telegram topics が有効になっていません。\n\n有効にする方法:\n1. @BotFather を開きます。\n2. 自分の bot を選びます。\n3. Bot Settings → Threads Settings を開きます。\n4. Threaded Mode をオンにし、ユーザーが新しいスレッドを作成できるように設定します。\n\nそして /topic をもう一度送信してください。"
|
||
topics_user_disallowed: "Telegram topics は有効ですが、ユーザーは topic を作成できません。\n\n@BotFather → 自分の bot → Bot Settings → Threads Settings を開き、'Disallow users to create new threads' をオフにしてください。\n\nそして /topic をもう一度送信してください。"
|
||
enable_failed: "Telegram topic モードの有効化に失敗しました: {error}"
|
||
bound_status: "この topic は次にリンクされています:\nセッション: {label}\nID: {session_id}\n\nこの topic を新しいセッションに置き換えるには /new を使用してください。\n並行作業には、All Messages を開いてメッセージを送信し、別の topic を作成してください。"
|
||
thread_ready: "Telegram のマルチセッション topics が有効です。\n\nこの topic は独立した Hermes セッションとして使用されます。この topic の現在のセッションを置き換えるには /new を使用してください。並行作業には、All Messages を開いてメッセージを送信し、別の topic を作成してください。"
|
||
untitled_session: "無題のセッション"
|
||
|
||
undo:
|
||
nothing: "元に戻せる操作がありません。"
|
||
removed: "↩️ {count} 件のメッセージを取り消しました。\n削除: 「{preview}」"
|
||
|
||
update:
|
||
platform_not_messaging: "✗ /update はメッセージングプラットフォームでのみ利用可能です。ターミナルで `hermes update` を実行してください。"
|
||
not_git_repo: "✗ Git リポジトリではありません — 更新できません。"
|
||
hermes_cmd_not_found: "✗ `hermes` コマンドが見つかりません。Hermes は実行中ですが、更新コマンドは PATH 上にも現在の Python インタープリタ経由でも実行可能ファイルを見つけられませんでした。ターミナルで `hermes update` を手動で実行してみてください。"
|
||
start_failed: "✗ 更新の開始に失敗しました: {error}"
|
||
starting: "⚕ Hermes の更新を開始しています… 進捗をここにストリーミングします。"
|
||
|
||
usage:
|
||
rate_limits: "⏱️ **レート制限:** {state}"
|
||
header_session: "📊 **セッショントークン使用状況**"
|
||
label_model: "モデル: `{model}`"
|
||
label_input_tokens: "入力トークン: {count}"
|
||
label_cache_read: "キャッシュ読み取りトークン: {count}"
|
||
label_cache_write: "キャッシュ書き込みトークン: {count}"
|
||
label_output_tokens: "出力トークン: {count}"
|
||
label_total: "合計: {count}"
|
||
label_api_calls: "API 呼び出し: {count}"
|
||
label_cost: "コスト: {prefix}${amount}"
|
||
label_cost_included: "コスト: 含まれています"
|
||
label_context: "コンテキスト: {used} / {total} ({pct}%)"
|
||
label_compressions: "圧縮回数: {count}"
|
||
header_session_info: "📊 **セッション情報**"
|
||
label_messages: "メッセージ数: {count}"
|
||
label_estimated_context: "推定コンテキスト: ~{count} トークン"
|
||
detailed_after_first: "_(詳細な使用状況は最初のエージェント応答後に利用可能)_"
|
||
no_data: "このセッションの使用データはありません。"
|
||
|
||
verbose:
|
||
not_enabled: "`/verbose` コマンドはメッセージングプラットフォームで有効になっていません。\n\n`config.yaml` で有効にしてください:\n```yaml\ndisplay:\n tool_progress_command: true\n```"
|
||
mode_off: "⚙️ ツール進捗: **OFF** — ツールの動作は表示されません。"
|
||
mode_new: "⚙️ ツール進捗: **NEW** — ツールが変わったときに表示 (プレビュー長: `display.tool_preview_length`、デフォルト 40)。"
|
||
mode_all: "⚙️ ツール進捗: **ALL** — すべてのツール呼び出しを表示 (プレビュー長: `display.tool_preview_length`、デフォルト 40)。"
|
||
mode_verbose: "⚙️ ツール進捗: **VERBOSE** — すべてのツール呼び出しを完全な引数とともに表示。"
|
||
saved_suffix: "_(**{platform}** に保存しました — 次のメッセージから有効)_"
|
||
save_failed: "_(設定に保存できませんでした: {error})_"
|
||
|
||
voice:
|
||
enabled_voice_only: "音声モードを有効にしました。\n音声メッセージを送ると音声で返信します。\nすべてのメッセージへの音声返信は /voice tts を使ってください。"
|
||
disabled_text: "音声モードを無効にしました。テキストのみで返信します。"
|
||
tts_enabled: "自動 TTS を有効にしました。\nすべての返信に音声メッセージが含まれます。"
|
||
status_mode: "音声モード: {label}"
|
||
status_channel: "音声チャンネル: #{channel}"
|
||
status_participants: "参加者: {count}"
|
||
status_member: " - {name}{status}"
|
||
speaking: " (発話中)"
|
||
enabled_short: "音声モードを有効にしました。"
|
||
disabled_short: "音声モードを無効にしました。"
|
||
label_off: "オフ (テキストのみ)"
|
||
label_voice_only: "オン (音声メッセージにのみ音声で返信)"
|
||
label_all: "TTS (すべてのメッセージに音声で返信)"
|
||
|
||
yolo:
|
||
disabled: "⚠️ このセッションの YOLO モードは **OFF** — 危険なコマンドには承認が必要です。"
|
||
enabled: "⚡ このセッションの YOLO モードは **ON** — すべてのコマンドが自動承認されます。注意して使用してください。"
|
||
|
||
shared:
|
||
session_db_unavailable: "セッションデータベースが利用できません。"
|
||
session_db_unavailable_prefix: "セッションデータベースが利用できません"
|
||
session_not_found: "データベースにセッションが見つかりません。"
|
||
warn_passthrough: "⚠️ {error}"
|