mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-15 15:02:04 +00:00
The PHQ-9, GAD-7 and WHO-5 are not validated in Dutch or Brazilian Portuguese, and the SCI is validated in English only, yet the check-in wizard and the answer breakdown read the item text, answer options and stems through t() in the reader's language. Dutch and Brazilian Portuguese readers saw unvalidated translations of every item, including PHQ-9 item 9, under a note saying the questions were in English. Every surface now resolves instrument wording through instrumentText, which returns the English source for a language outside the instrument's validated set. The unvalidated wording is removed from the bundles; the locale-parity check accepts exactly those keys as absent and fails when a bundle carries one, and a structural test keeps item text out of bare t() calls. The PHQ-9 follow-up question regains its original wording. CONTRIBUTING states the rule for translators.