A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix: #881 confirm text add i18n
shuaia399bad0596c
diff --git a/ui/src/i18n/locales/en.json b/ui/src/i18n/locales/en.jsonindex 8e638ddc..a3230b80 100644--- a/ui/src/i18n/locales/en.json+++ b/ui/src/i18n/locales/en.json@@ -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."}diff --git a/ui/src/pages/Questions/Detail/components/WriteAnswer/index.tsx b/ui/src/pages/Questions/Detail/components/WriteAnswer/index.tsxindex eb423d36..afba9e42 100644--- a/ui/src/pages/Questions/Detail/components/WriteAnswer/index.tsx+++ b/ui/src/pages/Questions/Detail/components/WriteAnswer/index.tsx@@ -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);},