website: add id_ID translation (#96)

* website: add id_ID translation

* website: fix leftover id_ID translation
This commit is contained in:
Anggit Febriantoro
2023-01-21 14:32:55 +07:00
committed by GitHub
parent 08165211eb
commit 505b5ea767
8 changed files with 379 additions and 1 deletions

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: 'id-ID',
description: 'Solusi root kernel-based untuk perangkat Android GKI.',
themeConfig: {
nav: nav(),
lastUpdatedText: 'Update Terakhir',
sidebar: {
'/id_ID/guide/': sidebarGuide()
},
socialLinks: [
{ icon: 'github', link: 'https://github.com/tiann/KernelSU' }
],
footer: {
message: 'Rilis Dibawah Lisensi GPL3.',
copyright: 'Copyright © 2022-present KernelSU Developers'
},
editLink: {
pattern: 'https://github.com/tiann/KernelSU/edit/main/website/docs/:path',
text: 'Edit Halaman ini di GitHub'
}
}
})
function nav() {
return [
{ text: 'Petunjuk', link: '/id_ID/guide/what-is-kernelsu' },
{ text: 'Github', link: 'https://github.com/tiann/KernelSU' }
]
}
function sidebarGuide() {
return [
{
text: 'Petunjuk',
items: [
{ text: 'Apa itu KernelSU?', link: '/id_ID/guide/what-is-kernelsu' },
{ text: 'Instalasi', link: '/id_ID/guide/installation' },
{ text: 'Bagaimana cara buildnya?', link: '/id_ID/guide/how-to-build' },
{ text: 'Integrasi untuk perangkat non-GKI', link: '/id_ID/guide/how-to-integrate-for-non-gki'},
{ text: 'FAQ', link: '/id_ID/guide/faq' },
]
}
]
}

View File

@@ -22,6 +22,12 @@ export default defineConfig({
lang: vi_VN.lang,
themeConfig: vi_VN.themeConfig,
description: vi_VN.description
},
id_ID: {
label: 'Bahasa',
lang: id_ID.lang,
themeConfig: id_ID.themeConfig,
description: id_ID.description
}
}
})
})