优化,减少可能到来的1.2.4的工作量

1.增加翻译
2.为darkmode添加过度动画
3.修改package.json
This commit is contained in:
Riceneeder
2022-09-03 20:42:34 +08:00
parent 8cc58d9e68
commit 5ad1fc333e
19 changed files with 51 additions and 45 deletions

View File

@@ -29,7 +29,7 @@ export default class MessageInput extends Component {
&& user.length === 1
&& user.slice(-1).pop().UserName === this.props.me.UserName
) {
this.props.showMessage('Can\'t send messages to yourself.');
this.props.showMessage('不能向自己发送消息');
return false;
}
@@ -62,7 +62,7 @@ export default class MessageInput extends Component {
);
if (!res) {
await this.props.showMessage(batch ? `Sending message to ${e.NickName} has failed!` : 'Failed to send message.');
await this.props.showMessage(batch ? `Sending message to ${e.NickName} has failed!` : '消息发送失败');
}
return true;
@@ -114,7 +114,7 @@ export default class MessageInput extends Component {
continue;
}
// In batch mode just show the failed message
showMessage('Failed to send image.');
showMessage('发送图片失败');
}
}
}