This Blog Speaks Your Language Now! 🎉
Exciting news — the blog now supports the same post in multiple languages, with a one-click language switcher.
I have some genuinely exciting news to share: this blog now supports multiple languages! 🎉
For a while it bugged me that visitors come from all over the place, yet every post was locked to whatever single language I happened to write it in. So I finally fixed it — the same post can now live in several languages at once, and you, dear reader, get to pick the one you’re most comfortable with.
How to use it
Whenever a post is available in more than one language, you’ll see a friendly 🌐 banner right at the top of the article — just under the title — that says “This post is also available in:” followed by the other languages as buttons. One click and you’re reading the same post in your language of choice.
In fact — this very post has a 中文 version! Go ahead, scroll up to the banner and give it a try. I’ll wait. 😄
Posts that only exist in one language look exactly as before — no clutter, no empty banner. It only shows up when there’s actually something to switch to.
A few nice touches under the hood
I wanted this to be done properly, not just bolted on:
- Clean URLs — the original post keeps its address (
/blog/my-post), and translations live neatly alongside it (/blog/my-post/zh). None of my old links broke. - No duplicates — the blog list, archives, tags, and RSS feed each show a post just once, no matter how many languages it’s available in.
- Search that respects language — the site search indexes every translation, so searching in 中文 finds the 中文 version.
- Friendly to search engines — each version sets the right
langandhreflangtags, so Google can serve the right language to the right reader.
What’s next
This is the infrastructure landing — going forward I’ll gradually translate the posts I think are worth sharing more widely. Don’t expect every single post to be multilingual overnight (translating well takes real effort!), but the door is now wide open.
Thanks for reading, in whatever language you chose. Here’s to a blog that’s a little more welcoming to everyone. 🌍✨