website: add id_ID translation (#96)
* website: add id_ID translation * website: fix leftover id_ID translation
This commit is contained in:
committed by
GitHub
parent
08165211eb
commit
505b5ea767
56
website/docs/.vitepress/locales/id_ID.ts
Normal file
56
website/docs/.vitepress/locales/id_ID.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: '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' },
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user