mirror of
https://github.com/ent/ent.git
synced 2026-05-22 09:31:45 +03:00
doc/website: add locale dropdown menu to navbar
This commit is contained in:
committed by
Ariel Mashraki
parent
e4b7a28ceb
commit
3db3f5fd1a
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user