juudd's landing page is in two languages, and neither one is chosen for you. English is at /, Thai is at /th, and both are files that exist before anyone asks for them. A language is an address a reader picks with a link, not a guess the page makes about them.
That is the decision. The rest of this post is why a second language usually costs more than the words, the six parts of how it was done instead, and the rule that keeps a missing translation from shipping quietly.
The page had one reader it could not reach
The landing page had been rewritten four times to be readable by somebody who is not an infrastructure engineer. Each rewrite was an argument about whether the words land. All of them landed in one language.
Nothing in how we describe the person this is for says where they live or what they read. The page answered anyone who does not read English with nothing at all, so a second language was not polish. It was the page failing the reader it was already written for.
The usual way brings four things with it
The page's most unusual property is that it is a prerendered document with no JavaScript of its own. The common way to add a language is to add a module that brings a client runtime, a redirect based on the browser's language, a payload and a font. That is four things this page spends paragraphs of its configuration removing.
Two facts made the other way cheaper than it looks.
- Thai needs no font to be readable. Every platform ships a Thai face, so appending names to a font stack costs the English document nothing.
- A prerendered site has no runtime to negotiate anything in. That is normally the obstacle. Here it is the answer, because it means a locale can simply be a file.
One of those two facts has since been amended. The system faces disagree with each other and with the Latin weights beside them, so the Thai pages now fetch a self-hosted font, and the English pages still fetch none. The claim "the Thai page adds nothing" was true on the day and is not true now, and the record says so rather than leaving the sentence standing.
Six parts, and the line between them
| part | what it means |
|---|---|
| a locale is a route | / is English, /th is Thai, one component rendered twice at build time |
| no i18n module | about ninety lines instead: a locale file, a copy file and four small helpers |
| nothing is detected, redirected or remembered | no Accept-Language, no stored preference, no script |
| two homes for strings | page prose in one file; prose that lives beside its own reasoning stays in its data file |
| machine strings are not translated | tool names, shell commands, config paths, JSON, the connector URL |
| the reference page says what it is | it started English and said so, then followed into Thai |
The third row is the one worth checking against the code, because it is a claim about what does not exist. The module that holds the two locales opens by saying Accept-Language is not read and nothing is stored. The switch in the bar is two plain links, not a client-side route change, because the language is a property of the whole document: its lang attribute, its canonical link, its hreflang pair.
A missing translation is a type error
Strings that differ by language have one shape: a record with both languages in it, and no default. If the Thai is missing, the build does not fall back to English. It fails.
A page that is silently half in English is worse than a page that does not build, because nobody sees it. A reader in Thai reaches a sentence they cannot read, and the only evidence is that they leave. So the type system holds the line that a reviewer would eventually forget.
The honest cost is that every later edit to the page is two edits. That is the cost of the rule, and it is the one that will be felt.
Machine strings stay as the machine wrote them
Tool names, shell commands, config paths and the connector URL are the same string in both languages, because they are the same string in the terminal. The same line that sets them in a monospace face decides that they are not translated.
The place this matters most is the sample of real responses the page shows. It is the one claim a reader can go and check for themselves, and a translated response would be a claim they could not.
Every claim exists in both languages, or in neither
The Thai is a rewrite, not a gloss. Plain English translated word for word is not plain Thai, and the first Thai version proved it: it held every claim and kept five shapes of English, read as printed by a machine, and was rewritten within days.
One example of a shape: Thai keeps its passive marker ถูก for things done against you, so using it in a sentence about a benefit reads as a harm.
The rule the rewrite held to is the one the English page already had. Nothing is claimed that has not been measured, and no claim exists on one page that does not exist on the other. The five limits were the case that decided it: each one refuses exactly what the English refuses, down to the example hostname.
What is still open
Three things were named rather than left to be found.
- The error page and the four reference pages were English when the decision was written. Since then the reference page, the guide and the blog index have gained Thai addresses of their own.
- Analytics tells the two documents apart only by their path.
- Whether a Thai reader can tell which language came first is a judgement only the owner can close.
The rule, once
A language is a route that exists as a file, picked by the reader and never inferred. A string without a Thai half is a build that fails, and a machine string is never translated. The pages themselves are listed in the docs.