Skip to content
lanzai.co
Go back

Building a Bilingual Blog with Astro

Astro is a great choice for content sites, with built-in internationalized routing.

Key config

Set i18n.locales and defaultLocale in astro.config.mjs.

Content organization

Each post has a copy in src/content/posts/zh and en, distinguished by a locale field.


Share this post:

Previous Post
Hello, World
Next Post
Installing Docker on Ubuntu/Debian