fix: #881 confirm text add i18n

This commit is contained in:
shuai 2022-09-30 14:44:23 +08:00
parent 51cdcc25da
commit a399bad059
2 changed files with 4 additions and 2 deletions

View File

@ -602,7 +602,8 @@
"write_answer": {
"title": "Your Answer",
"btn_name": "Post your answer",
"tips": "Tips",
"confirm_title": "Continue to answer",
"continue": "Continue",
"confirm_info": "<p>Are you sure you want to add another answer?</p><p>You could use the edit link to refine and improve your existing answer, instead.</p>",
"empty": "Answer cannot be empty."
}

View File

@ -62,8 +62,9 @@ const Index: FC<Props> = ({ visible = false, data, callback }) => {
const clickBtn = () => {
if (data?.answered && !showEditor) {
Modal.confirm({
title: t('tips'),
title: t('confirm_title'),
content: t('confirm_info'),
confirmText: t('continue'),
onConfirm: () => {
setShowEditor(true);
},