diff --git a/doc/website/docusaurus.config.js b/doc/website/docusaurus.config.js index a01a0663f..fdd412b23 100644 --- a/doc/website/docusaurus.config.js +++ b/doc/website/docusaurus.config.js @@ -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",