DEV Community

Ayu GTA6
Ayu GTA6

Posted on

Shipping two languages without a translation API

The site has a full English and Chinese version. I did not use a translation service, and I would make the same choice again.

Why no machine translation

The content is full of status labels — official, reported, debunked — where the exact word matters. A machine translation will happily turn "reported but unconfirmed" into something that sounds like confirmation. On a site whose whole purpose is precision, that is unacceptable.

So both versions are written and reviewed by me, side by side, in the same source files.

The structure that makes it manageable

Every content file carries both language versions in its front matter: title, description and body for each. The build reads one file and emits two pages, /en/... and /zh/..., with hreflang links pointing at each other.

This is more work per page than writing one language. But it solves the biggest problem with translated sites: drift. Because both versions live in one file, I cannot update one and forget the other without seeing it immediately.

Internal links need translating too

A mistake I made early: links inside the English copy pointed to English pages, and I copied them verbatim into Chinese. That sent Chinese readers to English pages, which is worse than no link.

I fixed it by storing links as page identifiers rather than hardcoded paths. The template resolves the identifier to the correct locale at build time. One link definition, two correct URLs.

Where I do allow automation

I use scripts for the repetitive parts: generating the page list, the sitemap, the related-reading blocks and llms.txt. Those are mechanical and should never be typed by hand. But the actual sentences stay human-written.

For a small site with a narrow topic, that balance works well. Ten minutes of manual translation per page is cheaper than cleaning up confident machine-translated errors later.

Top comments (0)