feat: aiPromptテンプレート変数に {{Lang}} (ブラウザ言語) を追加#357
Conversation
Agent-Logs-Url: https://github.com/ujiro99/selection-command/sessions/05050bef-fbf1-4741-87fd-375aba5b90f1 Co-authored-by: ujiro99 <677231+ujiro99@users.noreply.github.com>
|
@copilot
なお、dispatcher.ts については既存のユニットテストが無いため、新規に作成してください。 |
…spatcher Agent-Logs-Url: https://github.com/ujiro99/selection-command/sessions/168c7a10-b9c1-4cef-a056-92a470c778d3 Co-authored-by: ujiro99 <677231+ujiro99@users.noreply.github.com>
コミット 8f11d72 でテストを追加しました。 backgroundDispatcher.test.ts(既存ファイルへの追加):
dispatcher.test.ts(新規作成):
合計 16 テストを追加、全 745 テストがパスしています。 |
| "message": "クリップボードから挿入されます" | ||
| }, | ||
| "PageAction_InputMenu_mark_lang": { | ||
| "message": "ブラウザの言語が挿入されます", |
There was a problem hiding this comment.
@copilot 言語というとEnglish、などが期待されますが実際に入力されるのは言語コードです。実態に合わせて、messageを以下のように修正してください。
ブラウザの言語コードが挿入されます。(例:en, es, zh_CN)
There was a problem hiding this comment.
コミット 1f68bc5 で修正しました。PageAction_InputMenu_mark_lang のメッセージを「ブラウザの言語コードが挿入されます。(例:en, es, zh_CN)」に変更しました。
| "message": "クリップボード" | ||
| }, | ||
| "PageAction_InputMenu_lang": { | ||
| "message": "ブラウザ言語" |
There was a problem hiding this comment.
コミット 1f68bc5 で修正しました。PageAction_InputMenu_lang のラベルを「ブラウザ言語コード」に変更しました。
… terminology Agent-Logs-Url: https://github.com/ujiro99/selection-command/sessions/f92e9fdf-4eb8-4ade-b1af-4f42908c1271 Co-authored-by: ujiro99 <677231+ujiro99@users.noreply.github.com>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #357 +/- ##
==========================================
+ Coverage 25.64% 25.94% +0.30%
==========================================
Files 309 309
Lines 31295 31313 +18
Branches 1551 1579 +28
==========================================
+ Hits 8026 8125 +99
+ Misses 23269 23188 -81 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
INSERTenumにLANGを追加し、InsertSymbolに対応するシンボル"Lang"を追加dispatcher.tsとbackgroundDispatcher.tsの変数マップにgetUILanguage()でユーザー言語を追加helper.tsの変換関数にINSERT.LANGを追加InputPopup.tsxのInputMenuに言語変数の挿入メニュー項目を追加PageAction_InputMenu_mark_langとPageAction_InputMenu_langキーを追加Option_aiPrompt_prompt_descの変数説明にユーザー言語を追記backgroundDispatcher.test.tsにBDI-14・BDI-15テスト追加({{Lang}}変数の検証)dispatcher.test.tsを新規作成(PDC-01〜03、PDI-01〜11: 計14テスト)ja/messages.jsonのPageAction_InputMenu_mark_langメッセージを「ブラウザの言語コードが挿入されます。(例:en, es, zh_CN)」に修正ja/messages.jsonのPageAction_InputMenu_langラベルを「ブラウザ言語コード」に修正