From 8d18e70233c4ee63c0f4682ee69ec618c549c023 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Sat, 8 Jan 2022 15:41:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=96=B5=E8=AF=AD=E7=BF=BB=E8=AF=91?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E5=A2=9E=E5=8A=A0=E5=9B=BD=E9=99=85=E5=8C=96?= =?UTF-8?q?=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/plugins/com.msgbyte.miaolang/src/SendMiaoModal.tsx | 9 +++++---- web/plugins/com.msgbyte.miaolang/src/index.ts | 7 ++++--- .../com.msgbyte.miaolang/src/{trans.ts => miaotrans.ts} | 5 ++++- web/plugins/com.msgbyte.miaolang/src/translate.ts | 9 +++++++++ web/plugins/com.msgbyte.miaolang/tsconfig.json | 1 - 5 files changed, 22 insertions(+), 9 deletions(-) rename web/plugins/com.msgbyte.miaolang/src/{trans.ts => miaotrans.ts} (69%) create mode 100644 web/plugins/com.msgbyte.miaolang/src/translate.ts diff --git a/web/plugins/com.msgbyte.miaolang/src/SendMiaoModal.tsx b/web/plugins/com.msgbyte.miaolang/src/SendMiaoModal.tsx index 6b7a8b3f..75f9c633 100644 --- a/web/plugins/com.msgbyte.miaolang/src/SendMiaoModal.tsx +++ b/web/plugins/com.msgbyte.miaolang/src/SendMiaoModal.tsx @@ -7,7 +7,8 @@ import { ChatInputActionContextProps, } from '@capital/common'; import { Button, TextArea } from '@capital/component'; -import { encode } from './trans'; +import { encode } from './miaotrans'; +import { Translate } from './translate'; interface SendMiaoModalProps { actions: ChatInputActionContextProps; @@ -25,9 +26,9 @@ export const SendMiaoModal: React.FC = React.memo( }, [text, modalContext, props.actions]); return ( - +