mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 23:33:29 +00:00
feat(i18n): add Dutch as an eighth end-to-end locale
Adds messages/nl.json (AI-initial, informal je/jij register, full key parity with en.json) and registers nl everywhere the locale list lives: config, loaders, Intl/date-fns mapping, zod enums, OpenAPI spec, scripts, the managed-profile picker and the notification locale guards. Dutch follows the Korean pattern for the AI surfaces (English body plus a Dutch reply-language footer, no safety-contract matrix) and gets its own banks in the outbound safety screen (dose, risk, causal, continuation), the prose-grounding and citation-coverage tables, the reference-range prose and the no-key fallback copy, each with Dutch test fixtures. PHQ-9 / GAD-7 / WHO-5 are not marked validated for nl yet: the Dutch wording has not been read against the published forms, so Dutch readers get the English items plus the existing note until it has.
This commit is contained in:
1 parent
01bf8fbb64
commit
c6f61fad33
83 files changed
+13832
-74
No files matched your search
@@ -119,7 +119,8 @@ function isLocale(value: string | null | undefined): value is Locale {
|
||||
value === "es" ||
|
||||
value === "it" ||
|
||||
value === "pl" ||
|
||||
value === "ko"
|
||||
value === "ko" ||
|
||||
value === "nl"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ const requestSchema = z
|
||||
.object({
|
||||
text: z.string().min(1).max(MAX_TEXT_LENGTH),
|
||||
/** Optional UI locale; informational hint for the model. */
|
||||
locale: z.enum(["en", "de", "es", "fr", "it", "pl", "ko"]).optional(),
|
||||
locale: z.enum(["en", "de", "es", "fr", "it", "pl", "ko", "nl"]).optional(),
|
||||
/**
|
||||
* Optional override of the reference date used to resolve relative
|
||||
* phrases ("tomorrow", "next Monday"). Defaults to the server's
|
||||
|
||||
@@ -33,7 +33,8 @@ function isLocale(value: string | null | undefined): value is Locale {
|
||||
value === "es" ||
|
||||
value === "it" ||
|
||||
value === "pl" ||
|
||||
value === "ko"
|
||||
value === "ko" ||
|
||||
value === "nl"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,8 @@ function isLocale(value: string | null | undefined): value is Locale {
|
||||
value === "es" ||
|
||||
value === "it" ||
|
||||
value === "pl" ||
|
||||
value === "ko"
|
||||
value === "ko" ||
|
||||
value === "nl"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user