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:
@@ -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
|
||||
}
|
||||
}
|
||||
})
|
||||
56
website/docs/.vitepress/locales/vi_VN.ts
Normal file
56
website/docs/.vitepress/locales/vi_VN.ts
Normal 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' },
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user