This is an automated email from the ASF dual-hosted git repository.
robin0716 pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
The following commit(s) were added to refs/heads/dev by this push:
new dc41218c refactor(ui): Update linked question UI text
dc41218c is described below
commit dc41218cee81bf43e1d6542856cc8d97db569100
Author: robin <[email protected]>
AuthorDate: Sat Oct 12 10:43:18 2024 +0800
refactor(ui): Update linked question UI text
---
i18n/en_US.yaml | 1 +
ui/src/pages/Questions/Linked/index.tsx | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/i18n/en_US.yaml b/i18n/en_US.yaml
index f47bca72..8c3c3ddd 100644
--- a/i18n/en_US.yaml
+++ b/i18n/en_US.yaml
@@ -1362,6 +1362,7 @@ ui:
answers: answers
linked_question:
title: Linked Questions
+ description: Questions linked to
no_linked_question: No questions linked from this question.
invite_to_answer:
title: Invite People
diff --git a/ui/src/pages/Questions/Linked/index.tsx
b/ui/src/pages/Questions/Linked/index.tsx
index 70a62ec1..981e8c4e 100644
--- a/ui/src/pages/Questions/Linked/index.tsx
+++ b/ui/src/pages/Questions/Linked/index.tsx
@@ -72,9 +72,9 @@ const LinkedQuestions: FC = () => {
return (
<Row className="pt-4 mb-5">
<Col className="page-main flex-auto">
- <h3 className="mb-3">Linked Questions</h3>
+ <h3 className="mb-3">{t('title')}</h3>
<div className="mb-5">
- Questions linked to/from
+ {t('description')}
<a href={`/questions/${qid}`}>{questionTitle}</a>
</div>
<QuestionList