LOG 05 · LANGUAGE
React & TypeScript
Every component, hook, and shared module here is typed end-to-end — catching state-shape mismatches between independent systems before they ship, not after.
Published · Updated
Types as documentation
Function signatures double as the documentation for how a piece of shared logic is meant to be used — an optional second parameter on a navigation function, for instance, makes an 'instant, skip the animation' fallback path discoverable at the call site instead of buried in a comment three files away.
Typed dictionaries across three languages
This site ships in English, Spanish, and Portuguese, and the translation files are not three independent objects that happen to look alike. The English dictionary is the source of truth and the other two are checked against `Dictionary = typeof en`, so a key that gets renamed, misspelled, or forgotten in a translation is a compile error rather than the word `undefined` rendering on a live page in a language I am not reading every day.
The same idea covers the per-project copy. Localised project data is typed as a `Pick` of the canonical entry, which means a translation file can only override fields that genuinely exist, and adding a new field to the base type immediately tells me every locale that still needs it. Type checking is doing the job a translation-management process would otherwise have to do by hand.






