Files
HealthLog/src/lib/mental-health/wording/who5/en.ts
T
Marc-André Bombeck 3843705296 feat(mental-health): keep questionnaire wording in code, one cited file per language
The PHQ-9, GAD-7, WHO-5 and SCI now have text in every app language
instead of falling back to the English original. Each instrument and
language is one file under src/lib/mental-health/wording/ that declares
what it is: a published validated translation reproduced word for word,
with its source and terms in `source`, or a translation written for
HealthLog, faithful to the English and on the same scale.

Validated versions added: the Pfizer PHQ-9 for France, the Netherlands,
Korea and Brazil, the Pfizer GAD-7 for the Netherlands, Korea and
Brazil, the PRU Dutch WHO-5, the Korean WHO-5 validation (J Korean Geriatr Psychiatry 2010) and
the Polish SCI validation (Sci Rep 2026). The SCI in the other
languages and the WHO-5 in Brazilian Portuguese carry HealthLog's own
translation; each file names any validated version found and why it is
not used.

Where the text is unvalidated, the check-in shows a note that the result
is orientation and a one-tap switch to the English original. Each
language loads as its own chunk when a questionnaire surface needs it.

The item text, answers, stems and the PHQ-9 follow-up leave every message
bundle, so a translator never sees them; the i18n guard now requires that
no bundle carries them, and the registry test requires every instrument
in every language with the item count and anchor scores the scoring
expects. CONTRIBUTING explains where the wording lives and how to propose
a validated version.
2026-10-23 08:13:56 +02:00

31 lines
1002 B
TypeScript

/**
* WHO-5, English: a validated translation, reproduced word for word.
*/
import type { InstrumentWording } from "../types";
const wording: InstrumentWording = {
validated: true,
source:
"World Health Organization. The World Health Organization-Five Well-Being Index (WHO-5). Geneva: World Health Organization; 2024 (WHO/UCN/MSD/MHE/2024.1), https://www.who.int/publications/m/item/WHO-UCN-MSD-MHE-2024.01. Licence: CC BY-NC-SA 3.0 IGO.",
stems: { period: "Over the last two weeks …" },
items: [
"I have felt cheerful and in good spirits",
"I have felt calm and relaxed",
"I have felt active and vigorous",
"I woke up feeling fresh and rested",
"My daily life has been filled with things that interest me",
],
anchors: {
all: {
0: "At no time",
1: "Some of the time",
2: "Less than half of the time",
3: "More than half of the time",
4: "Most of the time",
5: "All of the time",
},
},
};
export default wording;