@@ -2,6 +2,7 @@ import type { ReactNode } from 'react';
22import clsx from 'clsx' ;
33import Heading from '@theme/Heading' ;
44import styles from './styles.module.css' ;
5+ import Translate , { translate } from '@docusaurus/Translate' ;
56
67type FeatureItem = {
78 title : string ;
@@ -11,34 +12,58 @@ type FeatureItem = {
1112
1213const FeatureList : FeatureItem [ ] = [
1314 {
14- title : '组件化' ,
15+ title : translate ( {
16+ message : '组件化' ,
17+ } ) ,
1518 Svg : require ( '@site/static/img/undraw_react.svg' ) . default ,
16- description : < > 基于 AntDesign 组件库 v5 最新版的交互语言和视觉风格。</ > ,
19+ description : translate ( {
20+ message : '基于 AntDesign 组件库 v5 最新版的交互语言和视觉风格。' ,
21+ } ) ,
1722 } ,
1823 {
19- title : '国际化' ,
24+ title : translate ( {
25+ message : '国际化' ,
26+ } ) ,
2027 Svg : require ( '@site/static/img/undraw_around_the_world.svg' ) . default ,
21- description : < > 支持中英文切换,国际化配置管理能力。</ > ,
28+ description : translate ( {
29+ message : '支持中英文切换,国际化配置管理能力。' ,
30+ } ) ,
2231 } ,
2332 {
24- title : '黑白主题' ,
33+ title : translate ( {
34+ message : '黑白主题' ,
35+ } ) ,
2536 Svg : require ( '@site/static/img/undraw_docusaurus_mountain.svg' ) . default ,
26- description : < > 支持亮色和暗黑模式主题自由切换。</ > ,
37+ description : translate ( {
38+ message : '支持亮色和暗黑模式主题自由切换。' ,
39+ } ) ,
2740 } ,
2841 {
29- title : '创作管理' ,
42+ title : translate ( {
43+ message : '创作管理' ,
44+ } ) ,
3045 Svg : require ( '@site/static/img/undraw_docusaurus_react.svg' ) . default ,
31- description : < > 内置 MarkDown 编辑器,支持文章写文章、分类目录管理,标签管理。</ > ,
46+ description : translate ( {
47+ message : '内置 MarkDown 编辑器,支持文章写文章、分类目录管理,标签管理。' ,
48+ } ) ,
3249 } ,
3350 {
34- title : '内容管理' ,
51+ title : translate ( {
52+ message : '内容管理' ,
53+ } ) ,
3554 Svg : require ( '@site/static/img/undraw_version_control.svg' ) . default ,
36- description : < > 支持自定义新页面、内容评论管理,完整的社区互动功能。</ > ,
55+ description : translate ( {
56+ message : '支持自定义新页面、内容评论管理,完整的社区互动功能。' ,
57+ } ) ,
3758 } ,
3859 {
39- title : '多端适配' ,
60+ title : translate ( {
61+ message : '多端适配' ,
62+ } ) ,
4063 Svg : require ( '@site/static/img/undraw_typewriter.svg' ) . default ,
41- description : < > 完美适配电脑、平板、移动端H5页面。</ > ,
64+ description : translate ( {
65+ message : '完美适配电脑、平板、移动端H5页面。' ,
66+ } ) ,
4267 } ,
4368] ;
4469
0 commit comments