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: translate list view model
shuaic32f99b310a5
diff --git a/ui/src/components/QuestionList/index.tsx b/ui/src/components/QuestionList/index.tsxindex 88c48de3..5111b2d5 100644--- a/ui/src/components/QuestionList/index.tsx+++ b/ui/src/components/QuestionList/index.tsx@@ -120,10 +120,10 @@ const QuestionList: FC<Props> = ({{t('view', { keyPrefix: 'btns' })}</Dropdown.Header><Dropdown.Item eventKey="card" active={viewType === 'card'}>- {t('view', { keyPrefix: 'card' })}+ {t('card', { keyPrefix: 'btns' })}</Dropdown.Item><Dropdown.Item eventKey="compact" active={viewType === 'compact'}>- {t('view', { keyPrefix: 'compact' })}+ {t('compact', { keyPrefix: 'btns' })}</Dropdown.Item></Dropdown.Menu></Dropdown>diff --git a/ui/tsconfig.json b/ui/tsconfig.jsonindex ac6a549e..648dd025 100644--- a/ui/tsconfig.json+++ b/ui/tsconfig.json@@ -19,7 +19,6 @@"isolatedModules": true,"noImplicitAny": false,"ignoreDeprecations": "5.0",- "suppressImplicitAnyIndexErrors": true,"noEmit": true,"jsx": "react-jsx","baseUrl": "./",@@ -40,4 +39,4 @@"exclude": ["src/plugins"]-}\ No newline at end of file+}