Hide versions menu for ja-JP
What does this MR do and why?
As we're not translating any of the older docs pages, we're hiding the versions menu drowdown in ja-JP. Here's the changes:
- Modifies the
themes/gitlab-docs/layouts/_partials/header.htmlfile. - As a result:
- If the selected language is
en-US: all of the previous menu versions and archive link will be shown in the versions selector. - If the selected language is
ja-JP: the versions menu will be hidden.
- If the selected language is
FYI - Once the system is mature enough, we may need to bring the menu back in ja-JP later on in the future. But that should be a simple one line change in this file: themes/gitlab-docs/layouts/_partials/header.html
Related: gitlab-com/localization/docs-site-localization#532 (closed)
Screenshots, screen recordings, or links to review app
These are strongly recommended to assist reviewers and reduce the time to merge your change.
| Before | After |
|---|---|
![]() |
![]() |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Configure a local GitLab Docs environment.
- Check out this branch.
- Fire up in your local using
make setupandmake view - Change language selector to Japanese and check out the versions menu drop down to verify.
Merge request acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this merge request.
Edited by Rasam Hossain

