GitLab
GitLab logoGitLab · Feature trail

Documentation Localization Infrastructure

5 posts · Jul 2016 – Dec 2025

What this trail covers

GitLab is evolving its approach to documentation management by adopting a comprehensive 'docs-as-code' workflow. This involves using GitLab itself for planning, creating, reviewing, editing, and publishing documentation. The process leverages GitLab issues and issue boards for planning, merge requests for collaborative feedback and review, and a review app feature for previewing changes. Automated testing is integrated into the CI/CD pipeline to ensure content quality, and the final HTML output is dynamically generated using Hugo. This infrastructure is now being extended to support localization, starting with Japanese, by integrating new folders within the existing English content structure (`doc-locale/ja-jp`). This architecture keeps translations alongside source content, enabling version control, collaborative review, and automated quality checks. An AI-assisted translation workflow with human post-editing is employed, balancing speed and quality. Technical challenges include preserving complex markdown syntax, establishing English fallback mechanisms, dynamically adjusting navigation and linking with anchor IDs, and extending CI/CD pipelines for localized content testing. A centralized translation request system orchestrates the workflow, monitors English files, routes for translation, and creates translation merge requests. Future priorities include enhancing search experience for localized users and accelerating the continuous localization workflow.

All GitLab trails