Kkochi Pocha began as a Korean party game. Players soon arrived from other countries through shared links, so we translated it. It now supports Korean, English, Japanese, Simplified Chinese, Traditional Chinese, Indonesian, and Brazilian Portuguese.
Translating the first time was the easy part. The hard part was keeping it translated while we kept shipping features almost every day. A single hardcoded Korean string in a new button is invisible to a Korean developer and confusing to everyone else. These are the rules that kept that from happening.
Quick takeaways
- Korean is the single source catalog, and every other catalog is typed from it.
- A test fails the build if any screen code contains Korean outside the catalogs.
- Sentences with variables are whole functions, so each language controls its own word order.
- The server sends reason codes and never sends display text.
- Language choice, link previews, and fonts each follow one written rule.
One source catalog, typed
All screen text lives in a Korean catalog. Each other language has a catalog with the same keys, and its type is derived from the Korean one. If someone adds a key in Korean and forgets Japanese, or changes the variables a message takes, the type check fails before anything ships.
Messages that include values are written as whole-sentence functions. Instead of gluing "Round", a number, and "start" together, each language gets a function that receives the number and returns a complete sentence. Korean particles, Japanese word order, and English plurals stay inside that function, where a translator can see the whole sentence.
A second catalog test checks that these functions are safe to render. Values must not contain characters such as angle brackets or ampersands, so a translated sentence can never inject markup into the page.
A blunt test for hardcoded text
Types only protect text that goes through the catalog. The common failure is text that never enters it. A developer writes a quick label directly in screen code, it looks fine in Korean, and it ships.
So we added a test that reads every screen source file outside the catalog folder, strips comments, and fails if any line still contains Hangul. Korean comments are allowed, and Korean text in code is not. The failure message tells you which file and line to move into the catalog.
It is a crude check, and it has caught real mistakes more often than any review.
Keep display text off the server
The server never sends a sentence to a player. When something goes wrong, it sends a reason code from a fixed list, and the client turns that code into a message in the player's language. Even the default name the server assigns to a new guest is shown in the viewer's language on their own screen.
Numbers, sales totals, and dates go through the browser's built-in Intl formatting in one shared module, so a Brazilian player sees Brazilian number formatting without any special cases in game code.
Which language opens
The game picks a language in this order: a lang parameter in the address, then a language the player chose before, then the browser language. If none of those is supported, it opens in English. Chinese browser codes are mapped carefully, so zh-TW, zh-HK, and zh-Hant open Traditional Chinese while zh-CN, zh-SG, and zh-Hans open Simplified Chinese.
Only a choice made in the game's own language menu is saved on the device. A lang parameter in a link applies to that tab only. Without that rule, one shared link could quietly change someone's language for every future visit.
Link previews are their own problem
Most of our players arrive through a link in a chat app or social feed, and the preview card is the first thing they see. Preview crawlers usually do not say which language the reader speaks.
We handle this with a separate hl parameter. Promotional links carry hl, which sets only the preview language and does not change the game language. Links without hl or lang get a Korean preview, because that is where most shares still come from. Each language also has its own preview image.
Fonts are part of the translation
A rounded, playful display font sets the mood of a casual game, and one font cannot cover every script well. Fonts are chosen in one place per language. Korean, English, Indonesian, and Portuguese share one display face, Japanese uses another, and Simplified and Traditional Chinese each get a face designed for their characters. The result images players share after a game use the same settings, so a Japanese player's share card looks Japanese.
Checking the real screens
Our end-to-end tests run full games on simulated phone screens, and one pass renders the game in other languages. It looks for leftover Korean, text that overflows its container, and missing fonts. Overflow is the most common real bug, because a two-character Korean label can become a twelve-character Portuguese one.
What this cost
The rules add a small amount of friction to every feature. Each new message needs seven entries, and one long translation can still break a layout. In exchange, we can ship daily without asking someone to click through seven languages by hand, and players in Jakarta or São Paulo see a game that was made for them.