i18n · 2026 · Jasa

One dictionary, five languages

The site comes in Chinese, English, Japanese, Spanish and Korean. Every language version is built from one dictionary, so one missing line stopped forty pages at once.

Each page is written once, in Chinese

The body text of the site is written only in Chinese. The English lives in a dictionary: the key is the Chinese sentence, the value is its English. Japanese, Spanish and Korean each have their own dictionary, keyed by the English. When you open a page in English, a script looks up every piece of text.

Chinese pagewritten onceDictionaryChinese → EnglishEnglishJapaneseSpanishKorean
Pages are written only in Chinese. The dictionary gives the English, and Japanese, Spanish and Korean are looked up from the English.

That way there is only one page to maintain. But search engines don’t see text swapped in by a script, so every page also gets a static language version with its own address.

Why one missing line holds back the whole page

Building language versions follows one rule: if any piece of Chinese on a page has no English, that page is not built. Better no page than one that mixes Chinese and English.

One day I noticed that none of the language versions had been updated in a while. The cause was a label on the menu button meant for screen readers: “Menu and display settings”. On the live page another script translated it, but the dictionary didn’t have it. Forty pages carry that button, so forty pages got stuck together.

Dashed squares are the stuck pages. One line of English later, all forty light up together.

I added that one line of English, filled in twenty-odd gaps each in Japanese, Spanish and Korean, and rebuilt forty pages in four languages in a single release.

What I took away

← All notes