mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-07 04:12:04 +00:00
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.
59 lines
1.8 KiB
TypeScript
59 lines
1.8 KiB
TypeScript
/**
|
||
* SCI, English: a validated translation, reproduced word for word.
|
||
*/
|
||
import type { InstrumentWording } from "../types";
|
||
|
||
const wording: InstrumentWording = {
|
||
validated: true,
|
||
source:
|
||
"Espie CA, Kyle SD, Hames P, et al. The Sleep Condition Indicator: a clinical screening tool to evaluate insomnia disorder. BMJ Open 2014;4:e004183, https://bmjopen.bmj.com/content/4/3/e004183. © Sleepio Limited; free for non-commercial use (CC BY-NC).",
|
||
stems: {
|
||
night: "Thinking about a typical night in the last month …",
|
||
impact: "Thinking about the past month, to what extent has poor sleep …",
|
||
finally: "Finally …",
|
||
},
|
||
items: [
|
||
"… how long does it take you to fall asleep?",
|
||
"… if you then wake up during the night … how long are you awake for in total? (add all the wakenings up)",
|
||
"… how many nights a week do you have a problem with your sleep?",
|
||
"… how would you rate your sleep quality?",
|
||
"… affected your mood, energy, or relationships?",
|
||
"… affected your concentration, productivity, or ability to stay awake?",
|
||
"… troubled you in general?",
|
||
"… how long have you had a problem with your sleep?",
|
||
],
|
||
anchors: {
|
||
duration: {
|
||
0: "≥ 61 min",
|
||
1: "46–60 min",
|
||
2: "31–45 min",
|
||
3: "16–30 min",
|
||
4: "0–15 min",
|
||
},
|
||
nights: { 0: "5–7", 1: "4", 2: "3", 3: "2", 4: "0–1" },
|
||
quality: {
|
||
0: "Very poor",
|
||
1: "Poor",
|
||
2: "Average",
|
||
3: "Good",
|
||
4: "Very good",
|
||
},
|
||
impact: {
|
||
0: "Very much",
|
||
1: "Much",
|
||
2: "Somewhat",
|
||
3: "A little",
|
||
4: "Not at all",
|
||
},
|
||
problemDuration: {
|
||
0: "> 1 year",
|
||
1: "7–12 months",
|
||
2: "3–6 months",
|
||
3: "1–2 months",
|
||
4: "I don't have a problem / < 1 month",
|
||
},
|
||
},
|
||
};
|
||
|
||
export default wording;
|