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:
committed by
Andrey Nering
parent
54b5d4d389
commit
65f5222a2a
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user