Skip to content

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(answerEdit): update i18n fields in how_to_format

haitao(lj)520981368562
diff --git a/ui/src/pages/Maintenance/index.tsx b/ui/src/pages/Maintenance/index.tsx
index 6d232d09..25a208a0 100644
--- a/ui/src/pages/Maintenance/index.tsx
+++ b/ui/src/pages/Maintenance/index.tsx
@@ -20,7 +20,7 @@ const Index = () => {
style={{ fontSize: '120px', lineHeight: 1.2 }}>
(=‘_‘=)
</div>
- <div className="text-center mb-4">{t('description')}</div>
+ <div className="text-center mb-4">{t('desc')}</div>
</Container>
</div>
);
diff --git a/ui/src/pages/Questions/Ask/index.tsx b/ui/src/pages/Questions/Ask/index.tsx
index 028b3ac6..73529a5d 100644
--- a/ui/src/pages/Questions/Ask/index.tsx
+++ b/ui/src/pages/Questions/Ask/index.tsx
@@ -458,7 +458,7 @@ const Ask = () => {
</Form>
</Col>
<Col xxl={3} lg={4} sm={12} className="mt-5 mt-lg-0">
- <Card className="mb-4">
+ <Card>
<Card.Header>
{t('title', { keyPrefix: 'how_to_format' })}
</Card.Header>
diff --git a/ui/src/pages/Questions/EditAnswer/index.tsx b/ui/src/pages/Questions/EditAnswer/index.tsx
index f1a7a0a7..29390574 100644
--- a/ui/src/pages/Questions/EditAnswer/index.tsx
+++ b/ui/src/pages/Questions/EditAnswer/index.tsx
@@ -34,7 +34,7 @@ const initFormData = {
errorMsg: '',
},
};
-const Ask = () => {
+const Index = () => {
const [formData, setFormData] = useState<FormDataItem>(initFormData);
const { aid = '', qid = '' } = useParams();
const [focusType, setForceType] = useState('');
@@ -247,7 +247,7 @@ const Ask = () => {
<Card.Body
className="fmt small"
dangerouslySetInnerHTML={{
- __html: t('description', { keyPrefix: 'how_to_format' }),
+ __html: t('desc', { keyPrefix: 'how_to_format' }),
}}
/>
</Card>
@@ -257,4 +257,4 @@ const Ask = () => {
);
};
-export default Ask;
+export default Index;
diff --git a/ui/src/pages/Tags/Edit/index.tsx b/ui/src/pages/Tags/Edit/index.tsx
index 109b5373..1236db73 100644
--- a/ui/src/pages/Tags/Edit/index.tsx
+++ b/ui/src/pages/Tags/Edit/index.tsx
@@ -40,7 +40,7 @@ const initFormData = {
errorMsg: '',
},
};
-const Ask = () => {
+const Index = () => {
const { is_admin = false } = loggedUserInfoStore((state) => state.user);
const { tagId } = useParams();
@@ -269,4 +269,4 @@ const Ask = () => {
);
};
-export default Ask;
+export default Index;