Respect application config when `config.i18n.fallbacks` is `true` #217
All Vouch review confidence checks passed
Residual risk 0.29 = Change Risk (0.55) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.55 · 113 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.283
Sensitive Paths
sensitive_paths
0.055
Real PR Conversation Timeline
1 comments
"Review active on #217"
general
weight: 0.35
grosser
With
config.i18n.fallbacksset totrue,I18n.tfalls back to the default locale on detecting missing translations.That is how
I18n::Backend::Simpleworks, which Rails has set as a default in the generatedconfig/environments/production.rb.This commit makes
GettextI18nRails::Backendwork withI18n::Backend::Fallbacks.To be specific, this commit moves the definition of
#translateinto a separate moduleTranslationand letsBackendinclude it.As a result, when the application sets
config.i18n.fallbacks = true,I18n::Backend::Fallbacks#translate(which contains asupercall) takes precedence overGettextI18nRails::Backend::Translation#translate.The ancestors change like this:
Close #216