Skip to content

Stop false missing-translation reports in Sentry - #13011

Merged
iHiD merged 2 commits into
mainfrom
skip-i18n-reports-off-site
Nov 10, 2026
Merged

iHiD merged 2 commits into
mainfrom
skip-i18n-reports-off-site

Conversation

@iHiD

@iHiD iHiD commented Nov 10, 2026

Copy link
Copy Markdown
Member

Two situations make every key on a page look missing, and each one floods Sentry with "Missing translation" issues for keys that are translated.

  1. Proxied pages. Google Translate (*.translate.goog) serves copies of our pages from its own host, where the locale catalog often fails to load. One visit to a proxied pt-BR exercises page created 12 issues. In production, missing keys are now only reported when the page is served from exercism.org.
  2. Catalog load failures. If the catalog fetch fails, loadCatalog catches the error, the language still switches, and every key is reported. beforeSend drops the fetch error itself as a network error, so only the noise reaches Sentry. One crawler visit to the zh-CN profile and contributors pages created about 65 issues, and every key involved is in the zh-CN catalog. Missing keys in a non-English locale are now only reported once that locale's catalog has loaded.

Real gaps will still be reported. In a locale whose catalog loaded on exercism.org, a missing key creates an issue as before.

Both cases have tests in test/javascript/i18n/i18n.test.ts.

🤖 Generated with Claude Code

iHiD and others added 2 commits November 10, 2026 16:42
Proxies such as Google Translate serve copies of our pages from their own
hosts, where the locale catalog often fails to load. Every key on the page
then looks missing and floods Sentry. In production, missing keys are now
only reported when the page is served from exercism.org.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
If a locale's catalog fails to load, every key on the page looks missing,
so one failed fetch can create dozens of Sentry issues for keys that are
translated. Missing keys in a non-English locale are now only reported once
that locale's catalog has loaded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@iHiD
iHiD requested a review from dem4ron as a code owner November 10, 2026 07:43
@iHiD
iHiD merged commit 99135bd into main Nov 10, 2026
29 checks passed
@iHiD
iHiD deleted the skip-i18n-reports-off-site branch November 10, 2026 07:49
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.

1 participant