From 85d51e8aaa13b5d2086e0e18a6785988afffa57e Mon Sep 17 00:00:00 2001 From: 4thCafe Date: Fri, 17 Jul 2026 06:22:34 +0900 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E6=9C=AC=E8=AA=9E=E2=86=92=E8=8B=B1?= =?UTF-8?q?=E8=AA=9E=E5=A4=89=E6=8F=9B=E3=81=AE=E7=B5=90=E6=9E=9C=E3=81=AF?= =?UTF-8?q?=E9=A0=AD=E6=96=87=E5=AD=97=E3=82=92=E5=BF=85=E3=81=9A=E5=B0=8F?= =?UTF-8?q?=E6=96=87=E5=AD=97=E3=81=AB=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/tag_editor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/tag_editor.js b/js/tag_editor.js index 38e4ccf..415db89 100644 --- a/js/tag_editor.js +++ b/js/tag_editor.js @@ -150,8 +150,9 @@ export class TagEditor { if (hasJapanese(tok.text)) { // 日本語タグ → 英語に変換してテキスト欄へ反映(置換) const res = await translateTags([tok.text], "ja", "en"); - const v = res && res[0] ? res[0] : null; + let v = res && res[0] ? res[0] : null; if (v) { + v = v.charAt(0).toLowerCase() + v.slice(1); // 頭文字は必ず小文字 setTokenText(tok, v); // タグ本体を英語へ置換 tok.__trans = undefined; // 訳表示はクリア this._emitAndRender(); // textareaへ同期 + 再描画