French local testing + multi-AI translation QA — design
Version: 1.0
Last Updated: 2026-08-04 11:00:00
Enable fr-FR for local/dev testing, automate structural locale QA, and run dual-provider AI review of en-AU ↔ fr-FR string pairs with a durable exceptions register (doc 03 §7.8).
PHI boundary
Section titled “PHI boundary”Review and translation tooling receive locale JSON keys and English/French UI strings only — never user content or database extracts.
Components
Section titled “Components”| Piece | Location |
|---|---|
| Structural parity (keys, ICU placeholders) | backend/scripts/i18n_locale_parity.py |
| Batch en→fr fill (authoring) | backend/scripts/i18n_translate_locale.py |
| Dual-model review + back-translation | backend/scripts/i18n_ai_review.py |
| Shared flatten/load helpers | backend/scripts/i18n_qa_lib.py |
| Exceptions register | findings/i18n-<locale>-review-exceptions.json |
| Orchestration | scripts/run-i18n-locale-qa.ps1 |
| UI smoke | frontend/e2e/i18n-language-switcher.spec.ts |
| Enable locale | locales.config.json, services/i18n_locale.py |
AI provider selection
Section titled “AI provider selection”Scripts read OPENAI_API_KEY and/or ANTHROPIC_API_KEY from backend/.env. Review uses two different providers when both exist; otherwise two models on one provider with an explicit warning.
High-risk keys
Section titled “High-risk keys”Keys or English text matching dose/timing/allergy/emergency patterns require both reviewers ok to auto-clear; any issue stays open until triaged.