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: replace quetion list sort requent -> hot

shuai2be1807b0fd1
diff --git a/i18n/en_US.yaml b/i18n/en_US.yaml
index 88fd6e7f..9be207f7 100644
--- a/i18n/en_US.yaml
+++ b/i18n/en_US.yaml
@@ -1290,7 +1290,7 @@ ui:
answers: Answers
newest: Newest
active: Active
- frequent: Frequent
+ hot: Hot
score: Score
unanswered: Unanswered
modified: modified
diff --git a/i18n/zh_CN.yaml b/i18n/zh_CN.yaml
index 2c438316..5c3dd862 100644
--- a/i18n/zh_CN.yaml
+++ b/i18n/zh_CN.yaml
@@ -1249,7 +1249,7 @@ ui:
answers: 回答
newest: 最新
active: 活跃
- frequent: 浏览量
+ hot: 热度
score: 评分
unanswered: 未回答
modified: 更新于
diff --git a/ui/src/common/interface.ts b/ui/src/common/interface.ts
index 019786f1..0acd2f02 100644
--- a/ui/src/common/interface.ts
+++ b/ui/src/common/interface.ts
@@ -290,7 +290,7 @@ export interface LangsType {
export type QuestionOrderBy =
| 'newest'
| 'active'
- | 'frequent'
+ | 'hot'
| 'score'
| 'unanswered';
diff --git a/ui/src/components/QuestionList/index.tsx b/ui/src/components/QuestionList/index.tsx
index 2d9c447c..d9b46dd2 100644
--- a/ui/src/components/QuestionList/index.tsx
+++ b/ui/src/components/QuestionList/index.tsx
@@ -40,7 +40,7 @@ import { useSkeletonControl } from '@/hooks';
export const QUESTION_ORDER_KEYS: Type.QuestionOrderBy[] = [
'newest',
'active',
- 'frequent',
+ 'hot',
'score',
'unanswered',
];
diff --git a/ui/src/services/client/question.ts b/ui/src/services/client/question.ts
index d027c83b..0e382c26 100644
--- a/ui/src/services/client/question.ts
+++ b/ui/src/services/client/question.ts
@@ -40,7 +40,7 @@ export const useHotQuestions = (
params: Type.QueryQuestionsReq = {
page: 1,
page_size: 6,
- order: 'frequent',
+ order: 'hot',
in_days: 7,
},
) => {