You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add language dropdown menu but only for versions 3.13 and later (#725)
* Enable language dropdown menu
* Make specific versions show language dropdown menu
Add a conditional statement where only certain versions specified in `docusaurus.config.js` should show language dropdown menu.
* Add custom field (`allowedLanguageDropdownVersions`)
The custom field `allowedLanguageDropdownVersions` specifies which versions of docs should show the language dropdown menu. This custom field is based on the conditional statements in `src/theme/NavbarItem/LocaleDropdownNavbarItem/index.js`.
* Redirect visitors on versions without Japanese docs
If a version doesn't have Japanese docs, redirect visitors to the English page and URL. Without this fix, visitors would see English content with Japanese UI elements on a link with `ja-jp` in the URL.
* Show Google Translate widget only on 3.4 to 3.12
Since ScalarDB 3.13 and later will have Japanese versions of docs, the Google Translate widget should still appear at the top of the page for earlier versions.
* Fix Google Translate widget not reappearing on versions
This commit fixes an issue with the Google Translate widget not reappearing when navigating from a version that has Japanese docs (like 3.13), to a version that doesn't have Japanese docs (like 3.12), then moving back to a version that has Japanese docs, (like 3.13), and then back to a version that doesn't have Japanese docs (like 3.11).
* Update README.mdx
* Create README.mdx
* Remove redirect
Redirects don't seem to work for docs in the non-primary language.
0 commit comments