Skip to content

Commit c2cba06

Browse files
author
zihluwang
committed
feat: update i18n settings
1 parent faeb016 commit c2cba06

File tree

4 files changed

+220
-217
lines changed

4 files changed

+220
-217
lines changed

src/.vitepress/locale-config.ts

Lines changed: 0 additions & 217 deletions
This file was deleted.

src/.vitepress/locale-config/en-gb.ts

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
import { LocaleSpecificConfig } from "vitepress"
2+
import { DefaultTheme } from "vitepress/types"
3+
import { projectSidebar } from "../sidebar"
4+
5+
export const britishEnglishConfig: LocaleSpecificConfig<DefaultTheme.Config> & {
6+
label: string
7+
link?: string
8+
} = {
9+
label: "English",
10+
lang: "en",
11+
title: "OnixByte Official",
12+
titleTemplate: ":title | OnixByte",
13+
description:
14+
"OnixByte specialises in delivering cutting-edge technology solutions that drive innovation and empower businesses to excel in the digital era.",
15+
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+
sidebar: {
40+
"/opensource": [
41+
{
42+
text: "Open Source Documents",
43+
items: [
44+
{ text: "License", link: "/opensource/license" },
45+
{ text: "Contributing", link: "/opensource/contributing" },
46+
{ text: "Code of Conduct", link: "/opensource/code-of-conduct" },
47+
],
48+
},
49+
{
50+
text: "Open Source Projects",
51+
items: [
52+
{
53+
text: "Version Catalogue",
54+
link: "/projects/version-catalogue",
55+
},
56+
{ text: "Common Toolkit", link: "/projects/common-toolkit" },
57+
{
58+
text: "Identity Generator",
59+
link: "/projects/identity-generator",
60+
},
61+
{ text: "Crypto Toolkit", link: "/projects/crypto-toolkit" },
62+
{ text: "Math Toolkit", link: "/projects/math-toolkit" },
63+
{
64+
text: "JWT Toolkit",
65+
link: "/projects/jwt-toolkit",
66+
},
67+
],
68+
},
69+
],
70+
"/projects/version-catalogue": [
71+
{
72+
text: "Project",
73+
items: projectSidebar("version-catalogue"),
74+
},
75+
],
76+
"/projects/common-toolkit/": [
77+
{
78+
text: "Project",
79+
items: projectSidebar("common-toolkit"),
80+
},
81+
],
82+
"/projects/identity-generator/": [
83+
{
84+
text: "Project",
85+
items: projectSidebar("identity-generator"),
86+
},
87+
],
88+
"/projects/crypto-toolkit/": [
89+
{
90+
text: "Project",
91+
items: projectSidebar("crypto-toolkit"),
92+
},
93+
],
94+
"/projects/math-toolkit/": [
95+
{
96+
text: "Project",
97+
items: projectSidebar("math-toolkit"),
98+
},
99+
],
100+
"/projects/jwt-toolkit/": [
101+
{
102+
text: "Project",
103+
items: projectSidebar("jwt-toolkit"),
104+
},
105+
],
106+
},
107+
},
108+
}

src/.vitepress/locale-config/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { britishEnglishConfig } from "./en-gb"
2+
export { simplifiedChineseConfig } from "./zh-cn"

0 commit comments

Comments
 (0)