Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

Commit fd35159

Browse files
committed
feat: add Makefile for translation commands and update sidebar categories in multiple languages
1 parent 085fea7 commit fd35159

File tree

8 files changed

+65
-0
lines changed

8 files changed

+65
-0
lines changed

Makefile

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# 项目翻译相关的命令
2+
3+
# 一键生成所有语言的翻译文件
4+
trans:
5+
@echo "正在生成所有支持语言的翻译文件..."
6+
npx docusaurus write-translations --locale en
7+
npx docusaurus write-translations --locale es
8+
npx docusaurus write-translations --locale fr
9+
npx docusaurus write-translations --locale de
10+
npx docusaurus write-translations --locale ja
11+
npx docusaurus write-translations --locale ko
12+
npx docusaurus write-translations --locale hi
13+
@echo "所有翻译文件已生成完成!"
14+
15+
# 生成单个语言的翻译文件
16+
trans-en:
17+
npx docusaurus write-translations --locale en
18+
19+
trans-es:
20+
npx docusaurus write-translations --locale es
21+
22+
trans-fr:
23+
npx docusaurus write-translations --locale fr
24+
25+
trans-de:
26+
npx docusaurus write-translations --locale de
27+
28+
trans-ja:
29+
npx docusaurus write-translations --locale ja
30+
31+
trans-ko:
32+
npx docusaurus write-translations --locale ko
33+
34+
trans-hi:
35+
npx docusaurus write-translations --locale hi
36+
37+
.PHONY: trans trans-en trans-es trans-fr trans-de trans-ja trans-ko trans-hi

i18n/de/docusaurus-plugin-content-docs/current.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,9 @@
1414
"sidebar.tutorialSidebar.category.客户端使用": {
1515
"message": "Client-Nutzung",
1616
"description": "The label for category 客户端使用 in sidebar tutorialSidebar"
17+
},
18+
"sidebar.tutorialSidebar.category.开发文档": {
19+
"message": "Entwicklungsdokumentation",
20+
"description": "The label for category 开发文档 in sidebar tutorialSidebar"
1721
}
1822
}

i18n/en/docusaurus-plugin-content-docs/current.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,9 @@
1414
"sidebar.tutorialSidebar.category.客户端使用": {
1515
"message": "Client Usage",
1616
"description": "The label for category 客户端使用 in sidebar tutorialSidebar"
17+
},
18+
"sidebar.tutorialSidebar.category.开发文档": {
19+
"message": "Development Documentation",
20+
"description": "The label for category 开发文档 in sidebar tutorialSidebar"
1721
}
1822
}

i18n/es/docusaurus-plugin-content-docs/current.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,9 @@
1414
"sidebar.tutorialSidebar.category.客户端使用": {
1515
"message": "Uso del Cliente",
1616
"description": "The label for category 客户端使用 in sidebar tutorialSidebar"
17+
},
18+
"sidebar.tutorialSidebar.category.开发文档": {
19+
"message": "Documentación de Desarrollo",
20+
"description": "The label for category 开发文档 in sidebar tutorialSidebar"
1721
}
1822
}

i18n/fr/docusaurus-plugin-content-docs/current.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,9 @@
1414
"sidebar.tutorialSidebar.category.客户端使用": {
1515
"message": "Utilisation du Client",
1616
"description": "The label for category 客户端使用 in sidebar tutorialSidebar"
17+
},
18+
"sidebar.tutorialSidebar.category.开发文档": {
19+
"message": "Documentation de Développement",
20+
"description": "The label for category 开发文档 in sidebar tutorialSidebar"
1721
}
1822
}

i18n/hi/docusaurus-plugin-content-docs/current.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,9 @@
1414
"sidebar.tutorialSidebar.category.客户端使用": {
1515
"message": "क्लाइंट उपयोग",
1616
"description": "The label for category 客户端使用 in sidebar tutorialSidebar"
17+
},
18+
"sidebar.tutorialSidebar.category.开发文档": {
19+
"message": "विकास दस्तावेज़",
20+
"description": "The label for category 开发文档 in sidebar tutorialSidebar"
1721
}
1822
}

i18n/ja/docusaurus-plugin-content-docs/current.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,9 @@
1414
"sidebar.tutorialSidebar.category.客户端使用": {
1515
"message": "クライアントの使用方法",
1616
"description": "The label for category 客户端使用 in sidebar tutorialSidebar"
17+
},
18+
"sidebar.tutorialSidebar.category.开发文档": {
19+
"message": "開発ドキュメント",
20+
"description": "The label for category 开发文档 in sidebar tutorialSidebar"
1721
}
1822
}

i18n/ko/docusaurus-plugin-content-docs/current.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,9 @@
1414
"sidebar.tutorialSidebar.category.客户端使用": {
1515
"message": "클라이언트 사용법",
1616
"description": "The label for category 客户端使用 in sidebar tutorialSidebar"
17+
},
18+
"sidebar.tutorialSidebar.category.开发文档": {
19+
"message": "개발 문서",
20+
"description": "The label for category 开发文档 in sidebar tutorialSidebar"
1721
}
1822
}

0 commit comments

Comments
 (0)