From 88e88d30eb1c74bd8b3547bd1f105c1782113e64 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Thu, 4 May 2023 12:46:55 +0800 Subject: [PATCH] docs: add translation for download page --- website/i18n/zh-Hans/code.json | 12 ++++++++++++ .../zh-Hans/docusaurus-theme-classic/navbar.json | 4 ++++ website/src/pages/downloads.tsx | 13 +++++++++---- 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/website/i18n/zh-Hans/code.json b/website/i18n/zh-Hans/code.json index f11c1eb8..56d4efb6 100644 --- a/website/i18n/zh-Hans/code.json +++ b/website/i18n/zh-Hans/code.json @@ -377,5 +377,17 @@ }, "Platform": { "message": "开放平台" + }, + "Mobile Apps": { + "message": "移动端" + }, + "Use mobile app to visit Tailchat anywhere": { + "message": "使用移动App在任意地方访问 Tailchat" + }, + "Design with react-native": { + "message": "使用 react-native 开发" + }, + "Source Code": { + "message": "源代码" } } diff --git a/website/i18n/zh-Hans/docusaurus-theme-classic/navbar.json b/website/i18n/zh-Hans/docusaurus-theme-classic/navbar.json index 8c36a161..75d9a0b3 100644 --- a/website/i18n/zh-Hans/docusaurus-theme-classic/navbar.json +++ b/website/i18n/zh-Hans/docusaurus-theme-classic/navbar.json @@ -14,5 +14,9 @@ "item.label.GitHub": { "message": "GitHub", "description": "Navbar item with label GitHub" + }, + "item.label.Downloads": { + "message": "下载", + "description": "Navbar item with label Downloads" } } diff --git a/website/src/pages/downloads.tsx b/website/src/pages/downloads.tsx index 2ab6bd3d..257c887d 100644 --- a/website/src/pages/downloads.tsx +++ b/website/src/pages/downloads.tsx @@ -2,6 +2,7 @@ import Layout from '@theme/Layout'; import Link from '@docusaurus/Link'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import React from 'react'; +import Translate from '@docusaurus/Translate'; import './downloads.less'; export default function Downloads() { @@ -20,9 +21,13 @@ export default function Downloads() {
-

Mobile Apps (test)

+

+ Mobile Apps (test) +

-

Use mobile app to visit Tailchat anywhere

+

+ Use mobile app to visit Tailchat anywhere +

- Design with react-native:  + Design with react-native - Source Code + Source Code