Skip to content

fix(i18n): localize the auto-scoring settings page#718

Merged
mathrb merged 1 commit into
mainfrom
fix/i18n-auto-scorer-settings
Jul 2, 2026
Merged

fix(i18n): localize the auto-scoring settings page#718
mathrb merged 1 commit into
mainfrom
fix/i18n-auto-scorer-settings

Conversation

@mathrb

@mathrb mathrb commented Jul 2, 2026

Copy link
Copy Markdown
Owner

What

Routes every hardcoded English string on AutoScorerSettingsPage through AppLocalizations, with 20 new autoScorer* keys translated across all 7 locales.

Why

The whole app ships in 7 languages, but the #686 "streamlined settings" rework reintroduced ~20 raw Text('…') literals on this page (record toggle, capture mode, export tile + progress, clear-data dialog, detection-thresholds section). The page rendered in English regardless of locale — on the exact screen we ask "conforming board" testers to use (enable recording → play → export sessions).

Notes

  • English (app_en.arb) values are byte-identical to the old literals, so the existing widget test (default en locale) passes unchanged.
  • Two parameterized keys: autoScorerExportProgress(pct) and autoScorerClearBody(frameCount, sessionCount) (ICU double-plural, replacing the manual ?'':'s' pluralization).
  • fr reuses existing in-app darts terminology (cible / fléchettes). es/de/it/nl/pt translated to match each locale's existing dartboard term (diana / Board / bersaglio / bord / alvo); pt follows the file's Brazilian conventions (câmera / detecção).
  • Generated lib/l10n/gen/ is gitignored (regenerates on pub get) — not committed.

Verification

  • flutter gen-l10n + flutter analyze --no-fatal-infos → clean project-wide
  • flutter test .../auto_scorer_settings_page_test.dart → 4/4 pass unchanged
  • All 7 ARB files at key parity (563 each)

Closes #717

🤖 Generated with Claude Code

The #686 settings rework reintroduced ~20 hardcoded English strings on
AutoScorerSettingsPage (record toggle, capture mode, export tile, clear
dialog, detection thresholds), so the page rendered in English regardless
of locale — on the exact screen testers use to enable recording and export
sessions.

Route every string through AppLocalizations with new autoScorer* keys,
translated across all 7 locales. English values are kept byte-identical, so
the existing widget test (default en locale) passes unchanged.

Closes #717

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@mathrb

mathrb commented Jul 2, 2026

Copy link
Copy Markdown
Owner Author

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

🤖 Generated with Claude Code

- If this code review was useful, please react with 👍. Otherwise, react with 👎.

@mathrb mathrb merged commit d5916b7 into main Jul 2, 2026
2 checks passed
@mathrb mathrb deleted the fix/i18n-auto-scorer-settings branch July 2, 2026 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

i18n(auto-scorer): la page de réglages « Score automatique par caméra » est en anglais

1 participant