Every user-visible string of the island goes through t() / tl(): the cards,
chat, drop zone ("Drop your files here", the chips, "What do you want to do
with it?", "Ask a question about it", "Cancel"), plan usage, GitHub, the
integration cards, the recap card and image, the wardrobe and the pills'
categories. Tables other modules index (GH_STRINGS, PLAN_TEXT, outfit
labels…) read in the current language through getters.
- Ticker steps use the Mac's English labels ("Runs · npm test") in the
current language, instead of the French ones.
- Canvas text fits longer translations: the upload canvas measures and
scales its texts down (then ellipsizes), sizes its chips by what they say,
and the recap image does the same for its spaced labels, drawing Arabic,
Devanagari, Bengali and CJK whole rather than letter by letter. English
keeps its sizes.
- Dates (plan resets, the GitHub grid, the recap's week) come from Intl
outside English.
- Arabic: the cards' text reads right to left (CSS direction on the text
containers, keyed off <html data-dir>); Mochi, the pills, the header,
commands and code keep their places.
- Font stacks add Nirmala UI and Microsoft YaHei (Windows) and the Noto
families (Linux) after the Latin fonts.
- Caches keyed on what a card shows now include the language, so a switch
redraws them on the next sync.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DMzyoPKtGVNBUemdZhnWRG
LCS line diff with 3-line context hunks, the same 200 KB / 4 000-line /
1M-cell guards, toOneLine and the diff step encoding, plus buildFileDiff for
Edit / MultiEdit / Write tool inputs. Tests mirror tests/DiffEngineTests.swift.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>