feat: 多言語ロケールサポートの追加 (zh-cn, ko, zh-tw, es, pt-br, ru)#50
Merged
Conversation
- 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に更新
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
多言語ロケールサポートを追加し、6言語に対応。
Closes #47
追加言語
zh-cnkozh-twespt-brru変更内容
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の期待値を更新