1
0
mirror of https://github.com/go-task/task.git synced 2025-12-01 22:52:02 +02:00

feat(website): add Simplified Chinese menu

This commit is contained in:
Misite Bao
2023-03-13 20:06:41 +08:00
committed by Andrey Nering
parent 54b5d4d389
commit 65f5222a2a
5 changed files with 517 additions and 1 deletions

View File

@@ -27,7 +27,19 @@ const config = {
i18n: {
defaultLocale: 'en',
locales: ['en']
locales: ['en', 'zh-Hans'],
localeConfigs: {
en: {
label: 'English',
direction: 'ltr',
htmlLang: 'en-US'
},
'zh-Hans': {
label: '简体中文',
direction: 'ltr',
htmlLang: 'zh-Hans'
}
}
},
presets: [
@@ -96,6 +108,16 @@ const config = {
position: 'left',
label: 'Donate'
},
{
type: 'localeDropdown',
position: 'left'
// dropdownItemsAfter: [
// {
// to: '/',
// label: 'Help Us Translate ❤'
// }
// ]
},
{
href: GITHUB_URL,
label: 'GitHub',