doc/website: add locale dropdown menu to navbar

This commit is contained in:
Ariel Mashraki
2021-03-31 10:44:51 +03:00
committed by Ariel Mashraki
parent e4b7a28ceb
commit 3db3f5fd1a

View File

@@ -3,6 +3,24 @@ module.exports={
"i18n": {
"defaultLocale": 'en',
"locales": ['en', 'zh', 'ja', 'he'],
"localeConfigs": {
"en": {
"label": 'English',
"direction": 'ltr',
},
"zh": {
"label": 'Chinese',
"direction": 'ltr',
},
"ja": {
"label": 'Japanese',
"direction": 'ltr',
},
"he": {
"label": 'Hebrew',
"direction": 'rtl',
},
},
},
"tagline": "An entity framework for Go",
"url": "https://entgo.io",
@@ -112,6 +130,16 @@ module.exports={
className: 'header-github-link',
'aria-label': 'GitHub repository',
},
{
type: 'localeDropdown',
position: 'right',
dropdownItemsAfter: [
{
to: '/docs/translations',
label: 'Help Us Translate',
},
],
},
]
},
"image": "img/undraw_online.svg",