mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 13:01:00 +00:00
The guard read a parameter as required whenever it carried no question mark and no default, so `Locale | undefined`, `Locale | null`, a locale widened to `any`, and a default sitting on the destructuring pattern all walked straight past it. Each of those lets a caller say nothing and the sentence come back in English, which is the bug the guard exists to stop. A counter-case pins the other direction: a plainly required locale still reads clean, so the guard stays quiet on the shape the chain is meant to have. The correlation read now also asserts the language it was asked in; nothing else in that file would have noticed it going back to English.