website: add vi_VN translation (#91)

Signed-off-by: hmtheboy154 <buingoc67@gmail.com>

Signed-off-by: hmtheboy154 <buingoc67@gmail.com>
This commit is contained in:
Huy Minh
2023-01-21 05:37:36 +07:00
committed by GitHub
parent b7bed72c6d
commit ec0158e2e8
8 changed files with 383 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
import { defineConfig } from 'vitepress'
import en from './en'
import zh_CN from './zh_CN'
import vi_VN from './vi_VN'
export default defineConfig({
locales: {
@@ -15,6 +16,12 @@ export default defineConfig({
lang: zh_CN.lang,
themeConfig: zh_CN.themeConfig,
description: zh_CN.description
},
vi_VN: {
label: 'Tiếng Việt',
lang: vi_VN.lang,
themeConfig: vi_VN.themeConfig,
description: vi_VN.description
}
}
})

View File

@@ -0,0 +1,56 @@
import { createRequire } from 'module'
import { defineConfig } from 'vitepress'
const require = createRequire(import.meta.url)
const pkg = require('vitepress/package.json')
export default defineConfig({
lang: 'vi-VN',
description: 'Một giải pháp root trực tiếp trên kernel dành cho các thiết bị hỗ trợ GKI.',
themeConfig: {
nav: nav(),
lastUpdatedText: 'cập nhật lần cuối',
sidebar: {
'/vi_VN/guide/': sidebarGuide()
},
socialLinks: [
{ icon: 'github', link: 'https://github.com/tiann/KernelSU' }
],
footer: {
message: 'Phát hành dưới giấy phép GPL3.',
copyright: 'Bản Quyền © 2022-nay KernelSU Developers'
},
editLink: {
pattern: 'https://github.com/tiann/KernelSU/edit/main/website/docs/:path',
text: 'Chỉnh sửa trang này trên GitHub'
}
}
})
function nav() {
return [
{ text: 'Guide', link: '/vi_VN/guide/what-is-kernelsu' },
{ text: 'Github', link: 'https://github.com/tiann/KernelSU' }
]
}
function sidebarGuide() {
return [
{
text: 'Hướng Dẫn',
items: [
{ text: 'KernelSU là gì?', link: '/vi_VN/guide/what-is-kernelsu' },
{ text: 'Cách cài đặt', link: '/vi_VN/guide/installation' },
{ text: 'Cách để build?', link: '/vi_VN/guide/how-to-build' },
{ text: 'Tích hợp vào thiết bị không sử dụng GKI', link: '/vi_VN/guide/how-to-integrate-for-non-gki'},
{ text: 'FAQ - Câu hỏi thường gặp', link: '/vi_VN/guide/faq' },
]
}
]
}