Localization
Fern lets you publish your documentation in multiple languages from a single source. Readers switch languages from a dropdown in your site header, and each locale gets its own indexable URL for SEO.
You maintain your default-language pages as usual. When you run fern generate --docs, Fern auto-translates them into every configured language as part of the build, so your site rebuilds with up-to-date translations each time.
See it live on the i18n example site (source).
Localization is in alpha and under active development. Automated translation, search indexing, Ask Fern, and translated fern check errors are still in progress.
Reach out if you’re interested in implementing localization for your docs.
Early access setup
The manual setup below works today. Once localization is generally available, most of these steps will be handled for you.
Add a translations folder
Create a translations folder inside your fern directory, with a subfolder for each language using its ISO 639-1 code (e.g., fr, ja). Mirror your pages/ structure inside each language folder.
Declare languages in docs.yml
Add a translations key listing each supported language. The first entry is the default.