Claude Sonnet 5.5 · 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 Haiku 5.5.

Gold bugs found
1 of 2
Comments published
1
Comments matching a bug
1
Comments not matching
0
Cost of this PR
$0.558

Published comments (1)

mediumbuglib/freedom_patches/translate_accelerator.rb:62-65

Fallback locales not loaded outside controllers, caching missing translations — Outside controllers (jobs, mailers), `I18n.translate` can fall back to an unloaded locale, and the 'translation missing' string is cached under the real key for every later reader. Make `translate` call `ensure_loaded!` for each locale in the fallback chain before lookup, or skip caching missing-translation results. **Also found in:** - `app/controllers/application_controller.rb:159-159`

Gold bugs found (1)

mediumFallback locale catalogs are only loaded in the controller's set_locale filter, while translate loads just the current locale, so translations outside requests (jobs, mailers) cannot fall back to the site default or English.

Gold bugs missed (1)

mediumThe translation cache key does not include the site or its default locale, but fallback results now depend on SiteSetting.default_locale, so multisite processes or a changed default locale serve stale fallback translations.