Skip to content

Commit abf64f1

Browse files
committed
feat: add simplified Chinese
1 parent 9783f53 commit abf64f1

File tree

31 files changed

+447
-99
lines changed

31 files changed

+447
-99
lines changed

src/.vitepress/config.mts

Lines changed: 7 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -1,111 +1,20 @@
11
import { defineConfig } from "vitepress"
2-
import { projectSidebar } from "./sidebar"
2+
import { britishEnglishConfig, simplifiedChineseConfig } from "./locale-config"
33

44
export default defineConfig({
5-
title: "OnixByte Official",
6-
titleTemplate: ":title | OnixByte",
7-
description:
8-
"OnixByte specialises in delivering cutting-edge technology solutions that drive innovation and empower businesses to excel in the digital era.",
95
locales: {
106
root: {
117
label: "English",
128
lang: "en",
9+
...britishEnglishConfig,
10+
},
11+
"zh-CN": {
12+
label: "简体中文",
13+
lang: "zh-CN",
14+
...simplifiedChineseConfig,
1315
},
1416
},
1517
themeConfig: {
16-
nav: [
17-
{ text: "Home", link: "/" },
18-
{
19-
text: "Projects",
20-
items: [
21-
{
22-
text: "Version Catalogue",
23-
link: "/projects/version-catalogue",
24-
},
25-
{ text: "Common Toolkit", link: "/projects/common-toolkit" },
26-
{
27-
text: "Identity Generator",
28-
link: "/projects/identity-generator",
29-
},
30-
{ text: "Crypto Toolkit", link: "/projects/crypto-toolkit" },
31-
{ text: "Math Toolkit", link: "/projects/math-toolkit" },
32-
{
33-
text: "JWT Toolkit",
34-
link: "/projects/jwt-toolkit",
35-
},
36-
],
37-
},
38-
],
39-
40-
sidebar: {
41-
"/opensource": [
42-
{
43-
text: "Open Source Documents",
44-
items: [
45-
{ text: "License", link: "/opensource/license" },
46-
{ text: "Contributing", link: "/opensource/contributing" },
47-
{ text: "Code of Conduct", link: "/opensource/code-of-conduct" },
48-
],
49-
},
50-
{
51-
text: "Open Source Projects",
52-
items: [
53-
{
54-
text: "Version Catalogue",
55-
link: "/projects/version-catalogue",
56-
},
57-
{ text: "Common Toolkit", link: "/projects/common-toolkit" },
58-
{
59-
text: "Identity Generator",
60-
link: "/projects/identity-generator",
61-
},
62-
{ text: "Crypto Toolkit", link: "/projects/crypto-toolkit" },
63-
{ text: "Math Toolkit", link: "/projects/math-toolkit" },
64-
{
65-
text: "JWT Toolkit",
66-
link: "/projects/jwt-toolkit",
67-
},
68-
],
69-
},
70-
],
71-
"/projects/version-catalogue": [
72-
{
73-
text: "Project",
74-
items: projectSidebar("version-catalogue"),
75-
},
76-
],
77-
"/projects/common-toolkit/": [
78-
{
79-
text: "Project",
80-
items: projectSidebar("common-toolkit"),
81-
},
82-
],
83-
"/projects/identity-generator/": [
84-
{
85-
text: "Project",
86-
items: projectSidebar("identity-generator"),
87-
},
88-
],
89-
"/projects/crypto-toolkit/": [
90-
{
91-
text: "Project",
92-
items: projectSidebar("crypto-toolkit"),
93-
},
94-
],
95-
"/projects/math-toolkit/": [
96-
{
97-
text: "Project",
98-
items: projectSidebar("math-toolkit"),
99-
},
100-
],
101-
"/projects/jwt-toolkit/": [
102-
{
103-
text: "Project",
104-
items: projectSidebar("jwt-toolkit"),
105-
},
106-
],
107-
},
108-
10918
socialLinks: [{ icon: "github", link: "https://github.com/onixbyte" }],
11019
},
11120
outDir: "../dist",

src/.vitepress/locale-config.ts

Lines changed: 203 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,203 @@
1+
import { defineConfig } from "vitepress"
2+
import { projectSidebar } from "./sidebar"
3+
4+
export const britishEnglishConfig = defineConfig({
5+
title: "OnixByte Official",
6+
titleTemplate: ":title | OnixByte",
7+
description:
8+
"OnixByte specialises in delivering cutting-edge technology solutions that drive innovation and empower businesses to excel in the digital era.",
9+
themeConfig: {
10+
nav: [
11+
{ text: "Home", link: "/" },
12+
{
13+
text: "Projects",
14+
items: [
15+
{
16+
text: "Version Catalogue",
17+
link: "/projects/version-catalogue",
18+
},
19+
{ text: "Common Toolkit", link: "/projects/common-toolkit" },
20+
{
21+
text: "Identity Generator",
22+
link: "/projects/identity-generator",
23+
},
24+
{ text: "Crypto Toolkit", link: "/projects/crypto-toolkit" },
25+
{ text: "Math Toolkit", link: "/projects/math-toolkit" },
26+
{
27+
text: "JWT Toolkit",
28+
link: "/projects/jwt-toolkit",
29+
},
30+
],
31+
},
32+
],
33+
sidebar: {
34+
"/opensource": [
35+
{
36+
text: "Open Source Documents",
37+
items: [
38+
{ text: "License", link: "/opensource/license" },
39+
{ text: "Contributing", link: "/opensource/contributing" },
40+
{ text: "Code of Conduct", link: "/opensource/code-of-conduct" },
41+
],
42+
},
43+
{
44+
text: "Open Source Projects",
45+
items: [
46+
{
47+
text: "Version Catalogue",
48+
link: "/projects/version-catalogue",
49+
},
50+
{ text: "Common Toolkit", link: "/projects/common-toolkit" },
51+
{
52+
text: "Identity Generator",
53+
link: "/projects/identity-generator",
54+
},
55+
{ text: "Crypto Toolkit", link: "/projects/crypto-toolkit" },
56+
{ text: "Math Toolkit", link: "/projects/math-toolkit" },
57+
{
58+
text: "JWT Toolkit",
59+
link: "/projects/jwt-toolkit",
60+
},
61+
],
62+
},
63+
],
64+
"/projects/version-catalogue": [
65+
{
66+
text: "Project",
67+
items: projectSidebar("version-catalogue"),
68+
},
69+
],
70+
"/projects/common-toolkit/": [
71+
{
72+
text: "Project",
73+
items: projectSidebar("common-toolkit"),
74+
},
75+
],
76+
"/projects/identity-generator/": [
77+
{
78+
text: "Project",
79+
items: projectSidebar("identity-generator"),
80+
},
81+
],
82+
"/projects/crypto-toolkit/": [
83+
{
84+
text: "Project",
85+
items: projectSidebar("crypto-toolkit"),
86+
},
87+
],
88+
"/projects/math-toolkit/": [
89+
{
90+
text: "Project",
91+
items: projectSidebar("math-toolkit"),
92+
},
93+
],
94+
"/projects/jwt-toolkit/": [
95+
{
96+
text: "Project",
97+
items: projectSidebar("jwt-toolkit"),
98+
},
99+
],
100+
},
101+
},
102+
})
103+
104+
export const simplifiedChineseConfig = defineConfig({
105+
title: "OnixByte 官方网站",
106+
titleTemplate: ":title | OnixByte",
107+
description: "",
108+
themeConfig: {
109+
nav: [
110+
{ text: "主页", link: "/zh-CN/" },
111+
{
112+
text: "项目",
113+
items: [
114+
{
115+
text: "Version Catalogue",
116+
link: "/zh-CN/projects/version-catalogue",
117+
},
118+
{ text: "Common Toolkit", link: "/zh-CN/projects/common-toolkit" },
119+
{
120+
text: "Identity Generator",
121+
link: "/zh-CN/projects/identity-generator",
122+
},
123+
{ text: "Crypto Toolkit", link: "/zh-CN/projects/crypto-toolkit" },
124+
{ text: "Math Toolkit", link: "/zh-CN/projects/math-toolkit" },
125+
{
126+
text: "JWT Toolkit",
127+
link: "/zh-CN/projects/jwt-toolkit",
128+
},
129+
],
130+
},
131+
],
132+
sidebar: {
133+
"/zh-CN/opensource": [
134+
{
135+
text: "开源相关文档",
136+
items: [
137+
{ text: "许可证", link: "/zh-CN/opensource/license" },
138+
{ text: "贡献", link: "/zh-CN/opensource/contributing" },
139+
{ text: "Code of Conduct", link: "/zh-CN/opensource/code-of-conduct" },
140+
],
141+
},
142+
{
143+
text: "开源项目",
144+
items: [
145+
{
146+
text: "Version Catalogue",
147+
link: "/zh-CN/projects/version-catalogue",
148+
},
149+
{ text: "Common Toolkit", link: "/zh-CN/projects/common-toolkit" },
150+
{
151+
text: "Identity Generator",
152+
link: "/zh-CN/projects/identity-generator",
153+
},
154+
{ text: "Crypto Toolkit", link: "/zh-CN/projects/crypto-toolkit" },
155+
{ text: "Math Toolkit", link: "/zh-CN/projects/math-toolkit" },
156+
{
157+
text: "JWT Toolkit",
158+
link: "/zh-CN/projects/jwt-toolkit",
159+
},
160+
],
161+
},
162+
],
163+
"/zh-CN/projects/version-catalogue": [
164+
{
165+
text: "Project",
166+
items: projectSidebar("version-catalogue"),
167+
},
168+
],
169+
"/zh-CN/projects/common-toolkit/": [
170+
{
171+
text: "Project",
172+
items: projectSidebar("common-toolkit"),
173+
},
174+
],
175+
"/zh-CN/projects/identity-generator/": [
176+
{
177+
text: "Project",
178+
items: projectSidebar("identity-generator"),
179+
},
180+
],
181+
"/zh-CN/projects/crypto-toolkit/": [
182+
{
183+
text: "Project",
184+
items: projectSidebar("crypto-toolkit"),
185+
},
186+
],
187+
"/zh-CN/projects/math-toolkit/": [
188+
{
189+
text: "Project",
190+
items: projectSidebar("math-toolkit"),
191+
},
192+
],
193+
"/zh-CN/projects/jwt-toolkit/": [
194+
{
195+
text: "Project",
196+
items: projectSidebar("jwt-toolkit"),
197+
},
198+
],
199+
},
200+
},
201+
})
202+
203+
export const traditionalChineseConfig = defineConfig({})

src/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ features:
2626

2727
## Innovating Development, Empowering Developers
2828

29-
At OnixByte, we aim to simplify and accelerate the software development process through high-quality, open-source tools and frameworks. Whether you're building a robust backend, a sleek frontend, or exploring automation, our resources are designed to meet your needs.
29+
At OnixByte, we aim to simplify and accelerate the software development process
30+
through high-quality, open-source tools and frameworks. Whether you're building a robust backend,
31+
a sleek frontend, or exploring automation, our resources are designed to meet your needs.
3032

3133
## 🚀 Mission
3234

src/zh-CN/index.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
# https://vitepress.dev/reference/default-theme-home-page
3+
layout: home
4+
title: OnixByte 官方网站
5+
titleTemplate: ":title"
6+
7+
hero:
8+
name: OnixByte
9+
tagline: Building Better, Together.
10+
11+
features:
12+
- title: 开源类库
13+
details: |
14+
Our collection of open-source class libraries offers meticulously crafted, reusable components
15+
designed to accelerate your development process. Each library is maintained with rigorous
16+
standards to ensure reliability, efficiency, and ease of integration, empowering developers to
17+
build robust applications with confidence.
18+
- title: 定制您的项目
19+
details: |
20+
Tailor your project to perfectly suit your unique requirements with our flexible and modular
21+
tools. Whether you need to tweak existing components or develop bespoke functionalities, our
22+
solutions provide the adaptability and control to shape your project exactly as envisioned.
23+
---
24+
25+
[//]: # (![Banner](/brand/banner-filled.svg))
26+
27+
## Innovating Development, Empowering Developers
28+
29+
At OnixByte, we aim to simplify and accelerate the software development process through high-quality, open-source tools and frameworks. Whether you're building a robust backend, a sleek frontend, or exploring automation, our resources are designed to meet your needs.
30+
31+
## 🚀 Mission
32+
33+
We are committed to:
34+
35+
- Creating innovative development tools that save time and effort.
36+
- Sharing knowledge and best practices with the developer community.
37+
- Fostering collaboration and building impactful open-source projects.
38+
39+
## ❤️ Join the Community
40+
41+
- **GitHub Discussions**: Ask questions, share ideas, and discuss solutions.
42+
43+
## 📧 Contact Us
44+
45+
Have a question, feedback, or partnership opportunity? Reach out to us!
46+
47+
- Email us: opensource@onixbyte.com
48+
49+

0 commit comments

Comments
 (0)