Skip to content

Commit

Permalink
feat: add text translation(Duo Module 01)
Browse files Browse the repository at this point in the history
  • Loading branch information
logan-milkv committed Aug 26, 2024
1 parent bfeeeb2 commit 3af5ada
Show file tree
Hide file tree
Showing 5 changed files with 239 additions and 14 deletions.
56 changes: 56 additions & 0 deletions i18n/en/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -1200,5 +1200,61 @@
"docs.contributors": {
"description": "Contributors",
"message": "Contributors"
},
"page.duo01.text1": {
"message": "Built-in Main Functions",
"description": " "
},
"page.duo01.text2": {
"message": "'Five' Core",
"description": " "
},
"page.duo01.text3": {
"message": "Compact size",
"description": " "
},
"page.duo01.text4": {
"message": "Compatible with Duo / DuoS Software Ecosystem",
"description": " "
},
"page.duo01.text5": {
"message": "Design Documentation Open Source",
"description": " "
},
"page.duo01.text6": {
"message": "Easily design your own baseboards",
"description": " "
},
"page.duo01.text7": {
"message": "Simple package design",
"description": " "
},
"page.duo01.text8": {
"message": "Minimum of two layers of boards",
"description": " "
},
"page.duo01.text9": {
"message": "Supports customized firmware (burning to eMMC)",
"description": " "
},
"page.duo01.text10": {
"message": "Simple Production Process",
"description": " "
},
"page.duo01.text11": {
"message": "Supports SMD to Baseboard",
"description": " "
},
"page.duo01.text12": {
"message": "Evaluation Boards Available",
"description": " "
},
"page.duo01.text13": {
"message": "Open source Reference Design",
"description": " "
},
"page.duo01.text14": {
"message": "Complete Compliance Certification",
"description": " "
}
}
56 changes: 56 additions & 0 deletions i18n/ja/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -1200,5 +1200,61 @@
"docs.contributors": {
"description": "貢献者",
"message": "Contributors"
},
"page.duo01.text1": {
"message": "Built-in Main Functions",
"description": " "
},
"page.duo01.text2": {
"message": "'Five' Core",
"description": " "
},
"page.duo01.text3": {
"message": "Compact size",
"description": " "
},
"page.duo01.text4": {
"message": "Compatible with Duo / DuoS Software Ecosystem",
"description": " "
},
"page.duo01.text5": {
"message": "Design Documentation Open Source",
"description": " "
},
"page.duo01.text6": {
"message": "Easily design your own baseboards",
"description": " "
},
"page.duo01.text7": {
"message": "Simple package design",
"description": " "
},
"page.duo01.text8": {
"message": "Minimum of two layers of boards",
"description": " "
},
"page.duo01.text9": {
"message": "Supports customized firmware (burning to eMMC)",
"description": " "
},
"page.duo01.text10": {
"message": "Simple Production Process",
"description": " "
},
"page.duo01.text11": {
"message": "Supports SMD to Baseboard",
"description": " "
},
"page.duo01.text12": {
"message": "Evaluation Boards Available",
"description": " "
},
"page.duo01.text13": {
"message": "Open source Reference Design",
"description": " "
},
"page.duo01.text14": {
"message": "Complete Compliance Certification",
"description": " "
}
}
56 changes: 56 additions & 0 deletions i18n/ru/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -963,5 +963,61 @@
},
"Embracing": {
"message": "Позвольте Milk-V обнять RISC-V"
},
"page.duo01.text1": {
"message": "Built-in Main Functions",
"description": " "
},
"page.duo01.text2": {
"message": "'Five' Core",
"description": " "
},
"page.duo01.text3": {
"message": "Compact size",
"description": " "
},
"page.duo01.text4": {
"message": "Compatible with Duo / DuoS Software Ecosystem",
"description": " "
},
"page.duo01.text5": {
"message": "Design Documentation Open Source",
"description": " "
},
"page.duo01.text6": {
"message": "Easily design your own baseboards",
"description": " "
},
"page.duo01.text7": {
"message": "Simple package design",
"description": " "
},
"page.duo01.text8": {
"message": "Minimum of two layers of boards",
"description": " "
},
"page.duo01.text9": {
"message": "Supports customized firmware (burning to eMMC)",
"description": " "
},
"page.duo01.text10": {
"message": "Simple Production Process",
"description": " "
},
"page.duo01.text11": {
"message": "Supports SMD to Baseboard",
"description": " "
},
"page.duo01.text12": {
"message": "Evaluation Boards Available",
"description": " "
},
"page.duo01.text13": {
"message": "Open source Reference Design",
"description": " "
},
"page.duo01.text14": {
"message": "Complete Compliance Certification",
"description": " "
}
}
56 changes: 56 additions & 0 deletions i18n/zh/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -1074,5 +1074,61 @@
"docs.contributors": {
"description": "Contributors",
"message": "贡献者"
},
"page.duo01.text1": {
"message": "核心功能全集成",
"description": " "
},
"page.duo01.text2": {
"message": "'五核'异构",
"description": " "
},
"page.duo01.text3": {
"message": "超小尺寸",
"description": " "
},
"page.duo01.text4": {
"message": "兼容 Duo/Duo S 软硬件生态",
"description": " "
},
"page.duo01.text5": {
"message": "设计资料全开源",
"description": " "
},
"page.duo01.text6": {
"message": "底板设计简单",
"description": " "
},
"page.duo01.text7": {
"message": "封装简单",
"description": " "
},
"page.duo01.text8": {
"message": "底板最简只需两层板",
"description": " "
},
"page.duo01.text9": {
"message": "支持定制化固件(预烧录至eMMC中)",
"description": " "
},
"page.duo01.text10": {
"message": "轻松地生产",
"description": " "
},
"page.duo01.text11": {
"message": "支持作为贴片元件使用",
"description": " "
},
"page.duo01.text12": {
"message": "提供评估板",
"description": " "
},
"page.duo01.text13": {
"message": "开放参考设计",
"description": " "
},
"page.duo01.text14": {
"message": "完善的合规性认证",
"description": " "
}
}
29 changes: 15 additions & 14 deletions src/pages/duo-module-01/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from "react";
import ChipsView from "@site/src/components/ChipsView";
import styles from './index.module.css';
import clsx from "clsx";
import Translate from '@docusaurus/Translate';

export default () => {

Expand All @@ -10,7 +11,7 @@ export default () => {
<div className={styles.overview_center}>
<div className={styles.module1}>
<div className={clsx(styles.b_green, styles.functions)}>
<p className={clsx(styles.ov_title)}>Built-in Main Functions</p>
<p className={clsx(styles.ov_title)}><Translate id="page.duo01.text1" /></p>
<ol>
<li>
<img src="/duom01/soc.svg" />
Expand Down Expand Up @@ -41,18 +42,18 @@ export default () => {
<div className={styles.functions_right}>
<div className={styles.module1_top}>
<div className={clsx(styles.b_green, styles.module1_top_1)}>
<p className={clsx(styles.ov_title)}>"Five Core"</p>
<p className={clsx(styles.ov_title)}><Translate id="page.duo01.text2" /></p>
<p className={clsx(styles.ov_title_)}>Built-in RV64GCV / Cortex-A53 with RV64GC, 8051<br />Built-in 0.5TOPS@INT8 TPU</p>
<img src="/duom01/chip-view.webp" alt="Five Core" />
</div>
<div className={clsx(styles.b_green, styles.module1_top_2)}>
<p className={clsx(styles.ov_title)}>Compact size</p>
<p className={clsx(styles.ov_title)}><Translate id="page.duo01.text3" /></p>
<p className={clsx(styles.ov_title_)}>25*25 mm(≈ 0.98inch)</p>
<img src="/duom01/size-view.webp" alt="Size View" />
</div>
</div>
<div className={clsx(styles.b_green, styles.module_bottom)}>
<p className={clsx(styles.ov_title)}>Compatible with Duo / DuoS Software Ecosystem</p>
<p className={clsx(styles.ov_title)}><Translate id="page.duo01.text4" /></p>
<ol>
<li>
<img src="/duom01/software1.webp" alt="Buildroot" />
Expand Down Expand Up @@ -92,7 +93,7 @@ export default () => {
</div>
<div className={styles.module2}>
<div className={clsx(styles.b_green)}>
<p className={clsx(styles.ov_title)}>Design Documentation Open Source</p>
<p className={clsx(styles.ov_title)}><Translate id="page.duo01.text5" /></p>
<ol>
<li>
<img src="/duom01/design1.webp" alt="2D Design Files" />
Expand All @@ -113,30 +114,30 @@ export default () => {
</ol>
</div>
<div className={clsx(styles.b_green)}>
<p className={clsx(styles.ov_title)}>Easily design your own baseboards</p>
<p className={clsx(styles.ov_title)}><Translate id="page.duo01.text6" /></p>
<div className={styles.line_design}>
<img src="/duom01/line-drawing.svg" alt="Line Drawing" />
<ul>
<li>Simple package design</li>
<li>Minimum of two layers of boards</li>
<li>Supports customized firmware (burning to eMMC)</li>
<li><Translate id="page.duo01.text7" /></li>
<li><Translate id="page.duo01.text8" /></li>
<li><Translate id="page.duo01.text9" /></li>
</ul>
</div>
</div>
</div>
<div className={styles.module3}>
<div className={clsx(styles.b_green, styles.take1)}>
<p className={clsx(styles.ov_title)}>Simple Production Process</p>
<p className={clsx(styles.ov_title_)}>Supports SMD to Baseboard</p>
<p className={clsx(styles.ov_title)}><Translate id="page.duo01.text10" /></p>
<p className={clsx(styles.ov_title_)}><Translate id="page.duo01.text11" /></p>
<img src="/duom01/scene1.webp" alt="Supports SMD to Baseboard" />
</div>
<div className={clsx(styles.b_green, styles.take2)}>
<p className={clsx(styles.ov_title)}>Evaluation Boards Available</p>
<p className={clsx(styles.ov_title_)}>Open source Reference Design</p>
<p className={clsx(styles.ov_title)}><Translate id="page.duo01.text12" /></p>
<p className={clsx(styles.ov_title_)}><Translate id="page.duo01.text13" /></p>
<img src="/duom01/right-view.webp" alt="Open source Reference Design" />
</div>
<div className={clsx(styles.b_green, styles.take3)}>
<p className={clsx(styles.ov_title)}>Complete Compliance Certification</p>
<p className={clsx(styles.ov_title)}><Translate id="page.duo01.text14" /></p>
<img src="/duom01/certification.webp" alt="Complete Compliance Certification" />
</div>
</div>
Expand Down

0 comments on commit 3af5ada

Please sign in to comment.