EmcyDocs
Back to Blog

Locale-Aware Blog Routing

How the blog routes keep the default locale clean while still supporting prefixed localized paths.

Written byEmcy Team

Routing and content systems

Updated March 30, 2026

Locale-Aware Blog Routing

Locale-Aware Blog Routing#

The blog follows the same route model as docs: default locale paths stay clean, while non-default locales use explicit prefixes.

Clean defaults matter#

For the default locale, the directory lives at /blog and posts live at /blog/[slug].

That keeps canonical URLs short and predictable.

Non-default locales stay explicit#

Spanish and Chinese routes move under locale prefixes:

  • /es/blog
  • /es/blog/[slug]
  • /zh/blog
  • /zh/blog/[slug]

The content model does not change. Each post simply provides locale variants in the same folder.

Language switching behavior#

On a post page, language switching preserves the current slug.

On the directory page, switching language intentionally drops the active search query and category filter because those values are locale-specific strings.

Tags

Suggested Posts

More implementation notes, release writeups, and patterns from the EmcyDocs example content.