From 33d48cd203845952d22cb75aa415c7af11c131b3 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Mon, 5 Sep 2022 00:03:37 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BC=98=E5=8C=96github=E8=AE=A2?= =?UTF-8?q?=E9=98=85=E5=88=9B=E5=BB=BA=E6=97=B6=E7=9A=84=E6=96=87=E6=A1=88?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/GroupSubscribePanel/AddGroupSubscribeModal.tsx | 2 +- .../web/plugins/com.msgbyte.github/src/translate.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/server/plugins/com.msgbyte.github/web/plugins/com.msgbyte.github/src/GroupSubscribePanel/AddGroupSubscribeModal.tsx b/server/plugins/com.msgbyte.github/web/plugins/com.msgbyte.github/src/GroupSubscribePanel/AddGroupSubscribeModal.tsx index ab72074b..dbe166ea 100644 --- a/server/plugins/com.msgbyte.github/web/plugins/com.msgbyte.github/src/GroupSubscribePanel/AddGroupSubscribeModal.tsx +++ b/server/plugins/com.msgbyte.github/web/plugins/com.msgbyte.github/src/GroupSubscribePanel/AddGroupSubscribeModal.tsx @@ -46,7 +46,7 @@ export const AddGroupSubscribeModal: React.FC<{ type: 'text', name: 'repoName', label: Translate.repoName, - placeholder: 'msgbyte/tailchat', + placeholder: Translate.repoNamePlaceholder, }, { type: 'custom', diff --git a/server/plugins/com.msgbyte.github/web/plugins/com.msgbyte.github/src/translate.ts b/server/plugins/com.msgbyte.github/web/plugins/com.msgbyte.github/src/translate.ts index f50ece56..66fb30f7 100644 --- a/server/plugins/com.msgbyte.github/web/plugins/com.msgbyte.github/src/translate.ts +++ b/server/plugins/com.msgbyte.github/web/plugins/com.msgbyte.github/src/translate.ts @@ -37,6 +37,10 @@ export const Translate = { 'zh-CN': '仓库名', 'en-US': 'Repo Name', }), + repoNamePlaceholder: localTrans({ + 'zh-CN': '(示例: msgbyte/tailchat)', + 'en-US': '(example: msgbyte/tailchat)', + }), textPanel: localTrans({ 'zh-CN': '文本频道', 'en-US': 'Text Channel',