Amazon Ergo 1.0 · Heavy
feature-localization-fallbacks-server-side-discourse-cursor
Discourse · Ruby · S · 30–99 lines · 6 files
The generalist plus 9 specialist lens agents in parallel, then the same verify and dedup steps. Judge: Claude Opus 5.5.
- Gold bugs found
- 2 of 3
- Comments published
- 2
- Comments matching a bug
- 2
- Comments not matching
- 0
- Cost of this PR
- $1.912
Published comments (2)
Fallback locales are only preloaded for web requests — Background jobs and mailers can silently receive missing fallback translations because `I18n.translate` only loads `config.locale`. Preload fallbacks with `I18n.fallbacks.ensure_loaded!` in the translation or locale-setting path, not only in `set_locale`.
Default-locale changes leave stale fallback translation cache entries — After `SiteSetting.default_locale` changes, users with an explicit locale can keep receiving cached fallback translations—or missing results—from the old locale. Include the fallback locale in the cache key in `lib/freedom_patches/translate_accelerator.rb`, or invalidate the translation cache when `default_locale` changes.