Skip to content

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).

Review and translation tooling receive locale JSON keys and English/French UI strings only — never user content or database extracts.

PieceLocation
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-translationbackend/scripts/i18n_ai_review.py
Shared flatten/load helpersbackend/scripts/i18n_qa_lib.py
Exceptions registerfindings/i18n-<locale>-review-exceptions.json
Orchestrationscripts/run-i18n-locale-qa.ps1
UI smokefrontend/e2e/i18n-language-switcher.spec.ts
Enable localelocales.config.json, services/i18n_locale.py

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.

Keys or English text matching dose/timing/allergy/emergency patterns require both reviewers ok to auto-clear; any issue stays open until triaged.