#i18n
5 notes · ← All notes
- Couple Court at /siam: a courtroom in the browserA showcase page for the Siam app with a pocket courtroom that rules in the page, then in one afternoon: a public jury, a verdict you can verify with WebCrypto, paw-print seals, share cards drawn on a canvas, and each judge speaking in its own voice.
- Drawing a share card on a canvasMaking a downloadable 3:4 or 9:16 PNG in the browser: canvas sizes, text that wraps Chinese without spaces, punctuation that must not start a line, clamping to two lines with an ellipsis, images that may fail, and toBlob.
- Evening: MySQL for visits, a pixel world map, eight languagesThe visitor log moved from Redis to MySQL with pagination and a pixel world map, the language toggle became an eight-language picker, the home page lost its bio, and a MySQL volume that kept its first, empty password.
- Afternoon on the live site: visitor log, two languages, auto-deployA Redis-backed visitor log behind Basic auth, English and Chinese with free machine translation, secrets that deploy themselves, a 35-minute image build cut to 40 seconds, and a CSRF check that broke behind HTTPS.
- Picking a language and translating a siteString tables instead of hard-coded text, how to choose a visitor’s language, placeholders, and caching machine translation.