mirror of
https://github.com/hacks-guide/Guide-WiiU.git
synced 2026-08-23 09:04:18 -05:00
Update VitePress and enable Hungarian (#264)
* Bump vitepress from 1.5.0 to 1.6.3 Bumps [vitepress](https://github.com/vuejs/vitepress) from 1.5.0 to 1.6.3. - [Release notes](https://github.com/vuejs/vitepress/releases) - [Changelog](https://github.com/vuejs/vitepress/blob/main/CHANGELOG.md) - [Commits](https://github.com/vuejs/vitepress/compare/v1.5.0...v1.6.3) --- updated-dependencies: - dependency-name: vitepress dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Regenerate package-lock.json * i18n: drop "language" from translatable strings * config: enable Hungarian * config: add srcExclude list - To avoid untranslated languages going live --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
@@ -15,7 +15,8 @@ export default defineConfig({
|
||||
description: "A guide to hacking the Nintendo Wii U.",
|
||||
head: [['link', { rel: 'icon', href: '/assets/img/favicon.ico' }]],
|
||||
locales: {
|
||||
root: i18n.en_US
|
||||
root: i18n.en_US,
|
||||
hu_HU: i18n.hu_HU
|
||||
},
|
||||
sitemap: {
|
||||
hostname: 'https://wiiu.hacks.guide'
|
||||
@@ -74,5 +75,38 @@ export default defineConfig({
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
srcExclude: [
|
||||
'ar_SA/**',
|
||||
'ca_ES/**',
|
||||
'cs_CZ/**',
|
||||
'da_DK/**',
|
||||
'de_DE/**',
|
||||
'el_GR/**',
|
||||
'es_ES/**',
|
||||
'et_EE/**',
|
||||
'fi_FI/**',
|
||||
'fr_FR/**',
|
||||
'he_IL/**',
|
||||
'hr_HR/**',
|
||||
'id_ID/**',
|
||||
'it_IT/**',
|
||||
'ja_JP/**',
|
||||
'ko_KR/**',
|
||||
'ms_MY/**',
|
||||
'nl_NL/**',
|
||||
'no_NO/**',
|
||||
'pl_PL/**',
|
||||
'pt_BR/**',
|
||||
'pt_PT/**',
|
||||
'ro_RO/**',
|
||||
'ru_RU/**',
|
||||
'sv_SE/**',
|
||||
'th_TH/**',
|
||||
'tr_TR/**',
|
||||
'uk_UA/**',
|
||||
'vi_VN/**',
|
||||
'zh_CN/**',
|
||||
'zh_TW/**'
|
||||
]
|
||||
})
|
||||
|
||||
@@ -77,7 +77,7 @@ const themeConfig = {
|
||||
|
||||
export default {
|
||||
lang: "en",
|
||||
label: localeData.language,
|
||||
label: "English",
|
||||
title: localeData.title,
|
||||
description: localeData.description,
|
||||
themeConfig: themeConfig
|
||||
|
||||
86
docs/.vitepress/i18n/hu_HU.js
Normal file
86
docs/.vitepress/i18n/hu_HU.js
Normal file
@@ -0,0 +1,86 @@
|
||||
import { hu_HU as localeData } from './strings'
|
||||
|
||||
const locale = "hu_HU";
|
||||
|
||||
const sidebar_troubleshooting = {
|
||||
text: localeData.troubleshooting,
|
||||
items: [
|
||||
{ text: localeData.pages["common-issues-fixes"], link: `/${locale}/common-issues-fixes` },
|
||||
{ text: localeData.pages["recover-vwii-ioses-channels"], link: `/${locale}/recover-vwii-ioses-channels` }
|
||||
]
|
||||
}
|
||||
|
||||
const sidebar_extras = {
|
||||
text: localeData.extras,
|
||||
items: [
|
||||
{ text: localeData.pages["block-updates"], link: `/${locale}/block-updates` },
|
||||
{ text: localeData.pages["unblock-updates"], link: `/${locale}/unblock-updates` },
|
||||
{ text: localeData.pages["dump-games"], link: `/${locale}/dump-games` },
|
||||
{ text: localeData.pages["uninstall-cbhc"], link: `/${locale}/uninstall-cbhc` },
|
||||
{ text: localeData.pages["uninstall-indexiine"], link: `/${locale}/uninstall-indexiine` },
|
||||
{ text: localeData.pages["uninstall-payloadloader"], link: `/${locale}/uninstall-payloadloader` }
|
||||
]
|
||||
}
|
||||
|
||||
const sidebar_common = {
|
||||
text: localeData.other,
|
||||
items: [
|
||||
{ text: localeData.pages["about"], link: `/${locale}/about` },
|
||||
{ text: localeData.pages["donations"], link: `/${locale}/donations` },
|
||||
{ text: localeData.pages["privacy-policy"], link: `/${locale}/privacy-policy` }
|
||||
]
|
||||
}
|
||||
|
||||
const themeConfig = {
|
||||
langMenuLabel: localeData.langMenuLabel,
|
||||
darkModeSwitchLabel: localeData.darkModeSwitchLabel,
|
||||
darkModeSwitchTitle: localeData.darkModeSwitchTitle,
|
||||
lightModeSwitchTitle: localeData.lightModeSwitchTitle,
|
||||
sidebarMenuLabel: localeData.sidebarMenuLabel,
|
||||
returnToTopLabel: localeData.returnToTopLabel,
|
||||
|
||||
nav: [
|
||||
{ text: localeData.pages["faq"], link: `/${locale}/faq` },
|
||||
sidebar_troubleshooting,
|
||||
sidebar_extras
|
||||
],
|
||||
sidebar: {
|
||||
/*
|
||||
The `/${locale}/` path needs to be at the bottom as a catch all! If it is placed anywhere above,
|
||||
it will select the first matching one and not parse the rest!
|
||||
*/
|
||||
[`/${locale}/`]: [
|
||||
{
|
||||
text: localeData.guide,
|
||||
items: [
|
||||
{ text: localeData.pages["aroma/getting-started"], link: `/${locale}/aroma/getting-started` },
|
||||
{ text: localeData.pages["aroma/sd-preparation"], link: `/${locale}/aroma/sd-preparation` },
|
||||
{ text: localeData.pages["aroma/browser-exploit"], link: `/${locale}/aroma/browser-exploit` },
|
||||
{ text: localeData.pages["aroma/nand-backup"], link: `/${locale}/aroma/nand-backup` },
|
||||
{ text: localeData.pages["aroma/installing-payloadloader"], link: `/${locale}/aroma/installing-payloadloader` },
|
||||
{ text: localeData.pages["aroma/autobooting"], link: `/${locale}/aroma/autobooting` },
|
||||
{ text: localeData.pages["finalizing-setup"], link: `/${locale}/aroma/finalizing-setup` }
|
||||
]
|
||||
},
|
||||
sidebar_troubleshooting,
|
||||
sidebar_extras,
|
||||
sidebar_common
|
||||
],
|
||||
},
|
||||
footer: {
|
||||
copyright: 'Copyright © 2024 Nintendo Homebrew',
|
||||
items: [
|
||||
{ text: localeData.pages["about"], link: `/${locale}/about` },
|
||||
{ text: localeData.pages["donations"], link: `/${locale}/donations` },
|
||||
{ text: localeData.pages["privacy-policy"], link: `/${locale}/privacy-policy` }
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
export default {
|
||||
lang: "hu",
|
||||
label: "Magyar",
|
||||
title: localeData.title,
|
||||
description: localeData.description,
|
||||
themeConfig: themeConfig
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
import en_US from './en_US'
|
||||
import hu_HU from './hu_HU'
|
||||
|
||||
export { en_US }
|
||||
export { en_US, hu_HU }
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"language": "English",
|
||||
"title": "Wii U Hacks Guide",
|
||||
"description": "A guide to hacking the Nintendo Wii U.",
|
||||
"langMenuLabel": "Switch language",
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import en_US from './en_US' with { type: 'json' }
|
||||
import hu_HU from './hu_HU' with { type: 'json' }
|
||||
|
||||
export { en_US }
|
||||
export { en_US, hu_HU }
|
||||
726
package-lock.json
generated
726
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"devDependencies": {
|
||||
"vitepress": "^1.5.0"
|
||||
"vitepress": "^1.6.3"
|
||||
},
|
||||
"scripts": {
|
||||
"docs:dev": "vitepress dev docs",
|
||||
|
||||
Reference in New Issue
Block a user