Files
SukiSU-Ultra/website/docs/.vitepress/locales/en.ts
Ylarod a255a5e3c1 website: add zh_CN translation (#88)
* website: bump vitepress to 1.0.0-alpha.38

* i18n: add zh-CN translation
2023-01-20 10:55:38 +08:00

55 lines
1.3 KiB
TypeScript

import { createRequire } from 'module'
import { defineConfig } from 'vitepress'
const require = createRequire(import.meta.url)
const pkg = require('vitepress/package.json')
export default defineConfig({
lang: 'en-US',
description: 'A kernel-based root solution for Android GKI devices.',
themeConfig: {
nav: nav(),
lastUpdatedText: 'last Updated',
sidebar: {
'/guide/': sidebarGuide()
},
socialLinks: [
{ icon: 'github', link: 'https://github.com/tiann/KernelSU' }
],
footer: {
message: 'Released under the GPL3 License.',
copyright: 'Copyright © 2022-present KernelSU Developers'
},
editLink: {
pattern: 'https://github.com/tiann/KernelSU/edit/main/website/docs/:path',
text: 'Edit this page on GitHub'
}
}
})
function nav() {
return [
{ text: 'Guide', link: '/guide/what-is-kernelsu' },
{ text: 'Github', link: 'https://github.com/tiann/KernelSU' }
]
}
function sidebarGuide() {
return [
{
text: 'Guide',
items: [
{ text: 'What is KernelSU?', link: '/guide/what-is-kernelsu' },
{ text: 'Installation', link: '/guide/installation' },
{ text: 'How to build?', link: '/guide/how-to-build' },
{ text: 'FAQ', link: '/guide/faq' },
]
}
]
}