mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-18 16:12:11 +00:00
feat(i18n): add Brazilian Portuguese support to medication and insight flows
Add pt-BR locale coverage across medication extraction, coach prose grounding, no-key insight fallbacks, coach read dates, and lab reference range parsing. - Accept pt-BR natively in NaturalLanguageExtractorProps. - Add Brazilian Portuguese population-norm framing patterns. - Add pt-BR no-assessment fallback copy for all insight floors. - Add pt-BR expected date coverage to the Coach read strip test. - Add pt-BR lab range prose vocabulary. - Keep existing locale behavior and safety-contract coverage unchanged.
This commit is contained in:
1 parent
da3edbf729
commit
12065bc0c7
5 files changed
+37
-1
No files matched your search
@@ -91,6 +91,7 @@ describe("CoachReadStrip — the latest reading's day", () => {
|
||||
it: "1 ottobre",
|
||||
ko: "10월 1일",
|
||||
pl: "1 października",
|
||||
"pt-BR": "1 de outubro",
|
||||
};
|
||||
for (const [locale, date] of Object.entries(expected) as Array<
|
||||
[Locale, string]
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
* button is the open-trigger.
|
||||
*/
|
||||
|
||||
import type { Locale } from "@/lib/i18n/config";
|
||||
import { useCallback, useId, useRef, useState } from "react";
|
||||
import { Loader2, Sparkles } from "lucide-react";
|
||||
|
||||
@@ -72,7 +73,7 @@ export interface NaturalLanguageExtractorProps {
|
||||
* UI locale forwarded to the route as a hint. The route accepts an
|
||||
* undefined value and falls back to the resolver chain.
|
||||
*/
|
||||
locale?: "en" | "de" | "es" | "fr" | "it" | "pl" | "ko";
|
||||
locale?: Locale;
|
||||
/**
|
||||
* Optional override of the API path so the wizard test harness can
|
||||
* point at a mock server. Defaults to the production route.
|
||||
|
||||
Reference in new issue
Block a user