i18n
Bilingual posts (EN + PT)
2026-05-08 · 1 min read · @ranty_archive
ranty — Archive
platform documentation
@ranty_archive
Write a post in two languages by adding a language tag before the extension. ranty groups the files into one logical post (one slug) and serves the variant that matches the visitor's language.
posts/getting-started.en.md
posts/getting-started.pt.md
In a bundle, tag the index files instead — the images are shared:
posts/getting-started/
index.en.md
index.pt.md
cover.png
Only en and pt count as language tags. A file with no tag — notes.md — is a single,
language-neutral post shown to everyone.
Fallback
If a visitor's language has no translation, ranty serves the original with a small,
dismissible note. Each language keeps its own title and body; shared fields (date,
tags, cover) come from the default-locale variant.
This very post is bilingual — switch the language in the top bar to see it flip.