Skip to content

Commit a27d443

Browse files
committed
try jp-docs
1 parent b36e7a8 commit a27d443

File tree

3 files changed

+33
-6
lines changed

3 files changed

+33
-6
lines changed

docusaurus.config.jp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const config = {
4646
"ドキュメント、クイックスタートガイド、ユーザーガイド、技術リファレンス、FAQ など、多様な情報をご提供します。",
4747
url: "https://clickhouse.com",
4848
// url: process.env.VERCEL_URL ? `https://${process.env.VERCEL_URL}` : 'https://bookish-disco-5997zvo.pages.github.io',
49-
baseUrl: "/docs/",
49+
baseUrl: "/jp-docs/",
5050
baseUrlIssueBanner: true,
5151
onBrokenLinks: "warn",
5252
onBrokenMarkdownLinks: "warn",

i18n/jp/code.json

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,5 +458,29 @@
458458
"theme.tags.tagsPageTitle": {
459459
"message": "タグ",
460460
"description": "The title of the tag list page"
461+
},
462+
"sidebar.dropdownCategories.category.Cloud": {
463+
"message": "クラウド"
464+
},
465+
"sidebar.dropdownCategories.category.Getting Started": {
466+
"message": "始める"
467+
},
468+
"sidebar.dropdownCategories.category.Manage Data": {
469+
"message": "データ管理"
470+
},
471+
"sidebar.dropdownCategories.category.Server Admin": {
472+
"message": "サーバー管理"
473+
},
474+
"sidebar.dropdownCategories.category.Reference": {
475+
"message": "リファレンス"
476+
},
477+
"sidebar.dropdownCategories.category.Integrations": {
478+
"message": "統合"
479+
},
480+
"sidebar.dropdownCategories.category.chDB": {
481+
"message": "chDB"
482+
},
483+
"sidebar.dropdownCategories.category.About": {
484+
"message": "について"
461485
}
462-
}
486+
}

src/components/DocsCategoryDropdown/index.jsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Link from "@docusaurus/Link";
44
import { useDocsSidebar } from "@docusaurus/plugin-content-docs/client";
55
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
66
import { translate } from "@docusaurus/Translate";
7+
import Translate from "@docusaurus/Translate";
78

89
import styles from "./styles.module.css";
910

@@ -86,10 +87,12 @@ function DocsCategoryDropdown({ dropdownCategory }) {
8687
}`}
8788
href={dropdownCategory.customProps.href}
8889
>
89-
{translate({
90-
id: `sidebar.dropdownCategories.category.${dropdownCategory.label}`,
91-
message: dropdownCategory.label,
92-
})}
90+
<Translate
91+
id={`sidebar.dropdownCategories.category.${dropdownCategory.label}`}
92+
description={`Translation for ${dropdownCategory.label}`}
93+
>
94+
{dropdownCategory.label}
95+
</Translate>
9396
</Link>{" "}
9497
<DropdownCaret />
9598
</span>

0 commit comments

Comments
 (0)