You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eventmesh.apache.org by ch...@apache.org on 2023/02/16 12:08:42 UTC

[incubator-eventmesh-site] branch master updated: Translation Home Page

This is an automated email from the ASF dual-hosted git repository.

chenguangsheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-eventmesh-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 0b86ed17 Translation Home Page
     new 16b4fcf1 Merge pull request #64 from mxsm/eventmesh-tran-index
0b86ed17 is described below

commit 0b86ed174d928aa8570faad48608e3429bf4171d
Author: mxsm <lj...@gmail.com>
AuthorDate: Sun Feb 12 00:27:07 2023 +0800

    Translation Home Page
---
 i18n/zh/code.json       | 8 ++++++++
 src/components/Hero.tsx | 5 +++--
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/i18n/zh/code.json b/i18n/zh/code.json
index 25803b0a..b91446a6 100644
--- a/i18n/zh/code.json
+++ b/i18n/zh/code.json
@@ -392,5 +392,13 @@
   "theme.SearchModal.placeholder": {
     "message": "搜索文档",
     "description": "The placeholder of the input of the DocSearch pop-up modal"
+  },
+  "eventmesh_intro": {
+    "message": "EventMesh是一个完全serverless平台用于构建分布式事件驱动应用程序",
+    "description": "Introduction to the EventMesh project."
+  },
+  "eventmesh_quick_start": {
+    "message": "快速开始",
+    "description": "Introduction to the EventMesh project."
   }
 }
diff --git a/src/components/Hero.tsx b/src/components/Hero.tsx
index 346d3803..523c7098 100644
--- a/src/components/Hero.tsx
+++ b/src/components/Hero.tsx
@@ -4,6 +4,7 @@ import Link from '@docusaurus/Link';
 import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
 import styles from './Hero.module.css';
 import ArchitectureImg from '../../static/images/eventmesh-architecture-2.png';
+import Translate, {translate} from '@docusaurus/Translate';
 
 const Hero = (): JSX.Element => {
   const { siteConfig } = useDocusaurusContext();
@@ -20,7 +21,7 @@ const Hero = (): JSX.Element => {
             </h2>
 
             <p className={styles.description}>
-              {siteConfig.tagline}
+              <Translate id="eventmesh_intro">{siteConfig.tagline}</Translate>
             </p>
 
             <div className={styles.buttons}>
@@ -28,7 +29,7 @@ const Hero = (): JSX.Element => {
                 className="button button--primary button--lg"
                 to="/docs/introduction"
               >
-                Get Started
+                <Translate id="eventmesh_quick_start">Get Started</Translate>
               </Link>
 
               <Link


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: commits-help@eventmesh.apache.org