Skip to content

Commit 4155a20

Browse files
committed
feat: #3, #4
Change-Id: Iba738e44b5eff736dba02cf02a1789f342987a13
1 parent 5857de3 commit 4155a20

5 files changed

Lines changed: 37 additions & 0 deletions

File tree

docs/.vitepress/config.mts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ export default defineConfig({
103103
label: locale.label,
104104
lang: locale.lang,
105105
themeConfig: {
106+
sidebarMenuLabel: locale.sidebarMenuLabel,
107+
darkModeSwitchLabel: locale.darkModeSwitchLabel,
108+
outlineTitle: locale.outlineTitle,
109+
returnToTopLabel: locale.returnToTopLabel,
110+
docFooter: locale.docFooter,
106111
nav: locale.nav,
107112
sidebar: locale.sidebar
108113
}

docs/.vitepress/locales.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ import { fileURLToPath } from 'node:url'
55
export type SiteLocale = {
66
label: string
77
lang: string
8+
sidebarMenuLabel?: string
9+
darkModeSwitchLabel?: string
10+
outlineTitle?: string
11+
returnToTopLabel?: string
12+
docFooter?: {
13+
prev?: string
14+
next?: string
15+
}
816
nav: Array<{ text: string; link: string }>
917
sidebar: Array<{
1018
text: string

docs/en/locale.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
{
22
"label": "English",
33
"lang": "en",
4+
"sidebarMenuLabel": "Menu",
5+
"darkModeSwitchLabel": "Appearance",
6+
"outlineTitle": "On this page",
7+
"returnToTopLabel": "Return to top",
8+
"docFooter": {
9+
"prev": "Previous page",
10+
"next": "Next page"
11+
},
412
"nav": [
513
{ "text": "Home", "link": "/en/" },
614
{ "text": "Guide", "link": "/en/get-started" }

docs/hr/locale.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
{
22
"label": "Hrvatski",
33
"lang": "hr",
4+
"sidebarMenuLabel": "Izbornik",
5+
"darkModeSwitchLabel": "Izgled",
6+
"outlineTitle": "Na ovoj stranici",
7+
"returnToTopLabel": "Povratak na vrh",
8+
"docFooter": {
9+
"prev": "Prethodna stranica",
10+
"next": "Sljedeća stranica"
11+
},
412
"nav": [
513
{ "text": "Početna", "link": "/hr/" },
614
{ "text": "Vodič", "link": "/hr/get-started" }

docs/zh/locale.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
{
22
"label": "简体中文",
33
"lang": "zh-CN",
4+
"sidebarMenuLabel": "菜单",
5+
"darkModeSwitchLabel": "外观",
6+
"outlineTitle": "本页内容",
7+
"returnToTopLabel": "返回顶部",
8+
"docFooter": {
9+
"prev": "上一页",
10+
"next": "下一页"
11+
},
412
"nav": [
513
{ "text": "首页", "link": "/zh/" },
614
{ "text": "指南", "link": "/zh/get-started" }

0 commit comments

Comments
 (0)