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: i8n use backend
shuai6c5d4afbe142
diff --git a/i18n/en_US.yaml b/i18n/en_US.yamlindex c7c5e0ac..67d34d6e 100644--- a/i18n/en_US.yaml+++ b/i18n/en_US.yaml@@ -1086,14 +1086,6 @@ ui:accepted: Acceptedanswered: answeredasked: asked- rank_type:- upvote: upvote- upvoted: upvoted- downvote: downvote- downvoted: downvoted- edit: edit- accept: accept- accepted: accepteddownvoted: downvotedmod_short: Modmod_long: Moderatorsdiff --git a/ui/src/pages/Users/Personal/components/Reputation/index.tsx b/ui/src/pages/Users/Personal/components/Reputation/index.tsxindex 936759ca..b9caf624 100644--- a/ui/src/pages/Users/Personal/components/Reputation/index.tsx+++ b/ui/src/pages/Users/Personal/components/Reputation/index.tsx@@ -1,6 +1,5 @@import { FC, memo } from 'react';import { ListGroup, ListGroupItem } from 'react-bootstrap';-import { useTranslation } from 'react-i18next';import { FormatTime } from '@/components';import { pathFactory } from '@/router/pathFactory';@@ -11,7 +10,6 @@ interface Props {}const Index: FC<Props> = ({ visible, data }) => {- const { t } = useTranslation('translation', { keyPrefix: 'personal' });if (!visible || !data?.length) {return null;}@@ -48,9 +46,7 @@ const Index: FC<Props> = ({ visible, data }) => {{item.title}</a><div className="d-flex align-items-center small text-secondary">- <span>- {t(item.rank_type, { keyPrefix: 'personal.rank_type' })}- </span>+ <span>{item.rank_type}</span><span className="split-dot" /><FormatTime time={item.created_at} className="me-4" /></div>