feat(i18n): add Russian (ru) locale

Full Russian catalog (11,154 keys, 1:1 with en, identical nesting) and every
locale wiring point the app declares, so ru is a first-class locale instead
of an English fallback:

- messages/ru.json, project.inlang/settings.json, i18n boot script
- i18n config / load-locale, format-locale (ru-RU), date-fns ru
- labs: parse-reference-range RANGE_PROSE for Russian lab sheets
  ("3,5 - 5,0", "от 3,5 до 5,0", "до 5,6", "не более 5,6")
- AI: citation-coverage normative stems, coach system prompt and insights
  reply footer (Russian prompts must override the hard-coded
  "Respond in English"), population-norm patterns
- safety: outbound-screen Russian imperative/dose/unit/causality bank
- mental health: PHQ-9, GAD-7, WHO-5 and SCI wording

verify-message-catalogs.mjs passes for all 10 locales.
This commit is contained in:
l1137l committed 2026-11-01 17:11:31 +00:00
1 parent 577e43004f
commit 6b9d222643
24 files changed
+14551 -6

No files matched your search

+3 -1
View File
@@ -1,4 +1,4 @@
import { de, enUS, es, fr, it, ko, nl, pl, ptBR } from "date-fns/locale";
import { de, enUS, es, fr, it, ko, nl, pl, ptBR, ru } from "date-fns/locale";
import type { Locale as DateFnsLocale } from "date-fns";
import type { Locale } from "@/lib/i18n/config";
@@ -27,6 +27,8 @@ export function resolveDateFnsLocale(locale: Locale): DateFnsLocale {
return nl;
case "pt-BR":
return ptBR;
case "ru":
return ru;
default:
return enUS;
}