From 02d05192e5ab080647d8d636684c3642b09d4cea Mon Sep 17 00:00:00 2001 From: ihavecoke Date: Thu, 20 Jun 2024 10:26:34 +0800 Subject: [PATCH 1/2] Add home page meta info --- i18n/en/code.json | 6 ++++++ i18n/zh-CN/code.json | 6 ++++++ i18n/zh-HK/code.json | 6 ++++++ src/components/layout/application.tsx | 10 ++++++---- 4 files changed, 24 insertions(+), 4 deletions(-) diff --git a/i18n/en/code.json b/i18n/en/code.json index bd40bfd10..1a2200ca0 100644 --- a/i18n/en/code.json +++ b/i18n/en/code.json @@ -1,4 +1,10 @@ { + "meta_title": { + "message": "LongPort - Research and trade with high-value investors" + }, + "meta_desc": { + "message": "LongPort is a public platform comprised of multiple brokerage users, offering rich multi-market trading capabilities, investment research tools and a high information density community discussion board." + }, "breadcrumbs.nav.home": { "message": "Home" }, diff --git a/i18n/zh-CN/code.json b/i18n/zh-CN/code.json index b00cccb6d..3f7836d54 100644 --- a/i18n/zh-CN/code.json +++ b/i18n/zh-CN/code.json @@ -1,4 +1,10 @@ { + "meta_title": { + "message": "LongPort 與高價值投資者一起研究和交易" + }, + "meta_desc": { + "message": "LongPort 是一個由多家券商用戶構成的公共平台,具備豐富的多市場交易能力、研究工具、以及一個高信息密度的投資者交流社區" + }, "breadcrumbs.nav.home": { "message": "首页" }, diff --git a/i18n/zh-HK/code.json b/i18n/zh-HK/code.json index f2dbc6417..6528158d2 100644 --- a/i18n/zh-HK/code.json +++ b/i18n/zh-HK/code.json @@ -1,4 +1,10 @@ { + "meta_title": { + "message": "LongPort 與高價值投資者一起研究和交易" + }, + "meta_desc": { + "message": "LongPort 是一個由多家券商用戶構成的公共平台,具備豐富的多市場交易能力、研究工具、以及一個高信息密度的投資者交流社區" + }, "breadcrumbs.nav.home": { "message": "首頁" }, diff --git a/src/components/layout/application.tsx b/src/components/layout/application.tsx index 89e5f79de..bb9345a6b 100644 --- a/src/components/layout/application.tsx +++ b/src/components/layout/application.tsx @@ -1,15 +1,17 @@ -import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import Layout from "@theme/Layout"; import React, { FC } from "react"; +import { translate } from "@docusaurus/Translate"; const ApplicationLayout: FC<{ children: React.ReactNode }> = ({ children }) => { - const { siteConfig } = useDocusaurusContext(); return ( - +
{children}
- ) + ); }; export default ApplicationLayout; From 9e63243e93f1010a14efd15cd7ecf9e26393843e Mon Sep 17 00:00:00 2001 From: ihavecoke Date: Thu, 20 Jun 2024 11:14:54 +0800 Subject: [PATCH 2/2] Use simplified chinese --- i18n/zh-CN/code.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/i18n/zh-CN/code.json b/i18n/zh-CN/code.json index 3f7836d54..ce58707eb 100644 --- a/i18n/zh-CN/code.json +++ b/i18n/zh-CN/code.json @@ -1,9 +1,9 @@ { "meta_title": { - "message": "LongPort 與高價值投資者一起研究和交易" + "message": "LongPort 与高价值投资者一起研究和交易" }, "meta_desc": { - "message": "LongPort 是一個由多家券商用戶構成的公共平台,具備豐富的多市場交易能力、研究工具、以及一個高信息密度的投資者交流社區" + "message": "LongPort 是一个由多家券商用户构成的公共平台,具备丰富的多市场交易能力、研究工具、以及一个高信息密度的投资者交流社区" }, "breadcrumbs.nav.home": { "message": "首页" @@ -104,7 +104,7 @@ "description": "Pluralized label for \"{count} docs tagged\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)" }, "theme.docs.tagDocListPageTitle": { - "message": "{nDocsTagged}「{tagName}」", + "message": "{nDocsTagged}[{tagName}]", "description": "The title of the page for a docs tag" }, "theme.docs.versionBadge.label": {