MkDocs static i18n plugin

1.3.1 · maintenance · verified Thu Apr 16

The `mkdocs-static-i18n` plugin allows you to support multiple languages for your documentation by adding static translation files to your existing documentation pages. It generates a default version of your website plus one version per configured language on its corresponding `/language/` path, and supports localized images, media, and assets. The current version is 1.3.1. While widely used, the project maintainer has stated it is "frozen as-is" due to upstream MkDocs maintenance uncertainty, suggesting a maintenance-only cadence without new feature development.

Common errors

Warnings

Install

Imports

Quickstart

To get started, first ensure `mkdocs-static-i18n` is installed. Then, configure the plugin in your `mkdocs.yml` file by defining your `default_language`, `docs_structure` (either `suffix` like `index.fr.md` or `folder` like `fr/index.md`), and the list of `languages` you wish to support.

mkdocs.yml:
plugins:
  - i18n:
      default_language: en
      docs_structure: suffix # or 'folder'
      languages:
        - locale: en
          name: English
        - locale: fr
          name: Français

# Example docs/ structure (suffix):
# docs/
# ├── index.en.md
# ├── index.fr.md
# └── about.en.md
# └── about.fr.md

# To serve the site locally:
# mkdocs serve

# To build the static site:
# mkdocs build

view raw JSON →