Skip to content

feat: 多言語ロケールサポートの追加 (zh-cn, ko, zh-tw, es, pt-br, ru)#50

Merged
ktmage merged 6 commits into
developmentfrom
feature/47/i18n-locale-support
Mar 1, 2026
Merged

feat: 多言語ロケールサポートの追加 (zh-cn, ko, zh-tw, es, pt-br, ru)#50
ktmage merged 6 commits into
developmentfrom
feature/47/i18n-locale-support

Conversation

@ktmage

@ktmage ktmage commented Mar 1, 2026

Copy link
Copy Markdown
Owner

概要

多言語ロケールサポートを追加し、6言語に対応。

Closes #47

追加言語

言語 ロケール ID
中国語(簡体字) zh-cn
韓国語 ko
中国語(繁体字) zh-tw
スペイン語 es
ポルトガル語(ブラジル) pt-br
ロシア語 ru

変更内容

Webview(チャット UI)

  • webview/locales/ に6言語のロケールファイルを新規作成(en.ts の全キーを翻訳)
  • locales/index.ts を更新: SupportedLocale 型、locales マップ、resolveLocale に各言語を追加
  • en.ts / ja.ts に言語ラベルキー6つを追加
  • ToolConfigPanel の言語セレクタに6言語を追加

VS Code 拡張機能メタデータ

  • package.nls.{locale}.json を6言語分作成

ドキュメント

  • README.md の対応言語一覧を更新

テスト

  • useLocale.test.ts に各ロケールの解決テストケースを追加
  • ToolConfigPanel.test.tsx の期待値を更新
  • 全891テストパス

ktmage added 6 commits March 1, 2026 23:34
- 6言語のロケールファイルを新規作成 (webview/locales/)
- SupportedLocale 型・locales マップ・resolveLocale に6言語を追加
- en.ts / ja.ts に言語ラベルキーを追加
- ToolConfigPanel の言語セレクタに6言語を追加
- 各言語の package.nls.*.json を作成
- README.md の対応言語一覧を更新

Closes #47
- useLocale.test.ts に6言語の resolveLocale / handleLocaleSettingChange テストを追加
- ToolConfigPanel.test.tsx の言語オプション数を9に更新
@ktmage ktmage merged commit 7c0d562 into development Mar 1, 2026
1 check passed
@ktmage ktmage mentioned this pull request Mar 1, 2026
@ktmage ktmage deleted the feature/47/i18n-locale-support branch March 1, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant