Skip to content

fix(i18n): un-translate do-not-translate tokens in es/fi/th catalogs - #41652

Merged
rusackas merged 2 commits into
masterfrom
fix/i18n-untranslate-dnt-tokens
Jul 3, 2026
Merged

rusackas merged 2 commits into
masterfrom
fix/i18n-untranslate-dnt-tokens

Conversation

@rusackas

@rusackas rusackas commented Jul 2, 2026

Copy link
Copy Markdown
Member

SUMMARY

Follow-up cleanup for the AI backfill sweep. The backfill filled some entries that must stay literal / identical to the source — the same tokens a human translator had marked # Не переводить ("do not translate") in the ru catalog:

  • bolt — an icon name (ControlHeader.tsx → label={t('bolt')} renders the ⚡ icon); a translated value breaks the icon lookup.
  • step-after / step-before — d3 line-interpolation enum values.
  • error_message — an API field name; plus SQL keywords, code constants (TEMPORAL_RANGE, EMAIL_REPORTS_CTA), formats/proper nouns, and example placeholders.

CodeAnt flagged several of these on the Russian PR (#41649). This reverts the machine-translated entries back to untranslated (so they fall back to the source token) in the three merged catalogs that contained them:

Catalog Reverted
es 3
fi 21
th 21

ru is fixed in its still-open PR (#41649); de/lv/sk/uk/cs had none (those tokens were already human-translated or weren't in their untranslated sets). Going forward, backfill_po.py skips these via a DO_NOT_TRANSLATE set and honors do-not-translate translator comments (#41651).

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Backend/frontend: e.g. the ⚡ control icon renders correctly again (was looking up a translated icon name).

TESTING INSTRUCTIONS

# confirm the tokens are untranslated (empty msgstr) in the three catalogs
grep -A2 '^msgid "bolt"$' superset/translations/th/LC_MESSAGES/messages.po

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
  • Introduces new feature or API
  • Removes existing feature or API

The AI backfill (#41609 es, #41613 fi, #41641 th) filled entries that must stay
literal — icon names (`bolt`), d3 enum values (`step-after`/`step-before`), API
field names (`error_message`), SQL keywords, code constants, and example
placeholders. These are the same tokens a human translator marked
`# Не переводить` in the ru catalog. Translating them can break icon lookups,
enum matching, or API contracts.

Revert those machine-translated entries to untranslated (source-token fallback)
in the three merged catalogs that had them: es (3), fi (21), th (21). Going
forward, backfill_po.py skips them via its DO_NOT_TRANSLATE set (#41651).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@github-actions github-actions Bot added i18n Namespace | Anything related to localization i18n:spanish Translation related to Spanish language labels Jul 2, 2026

@bito-code-review bito-code-review Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review Agent Run #07ef2b

Actionable Suggestions - 7
Additional Suggestions - 4
  • superset/translations/th/LC_MESSAGES/messages.po - 1
    • Empty translation regresses placeholder token handling · Line 9955-9956
      Removing translation for `EMAIL_REPORTS_CTA` (a placeholder/constant label) from 'EMAIL_REPORTS_CTA' to empty string. Placeholder tokens that serve as fallback labels conventionally keep the English form as msgstr — which is exactly what the prior state was.
  • superset/translations/es/LC_MESSAGES/messages.po - 3
    • Fuzzy flag removed without review · Line 19267-19268
      The placeholder token `'schema1,schema2'` (used as a database schema placeholder in `ExtraOptions.tsx:540`) now has an empty Spanish msgstr with no `#, fuzzy` marker. Spanish users will see the English placeholder string — functionally acceptable but inconsistent with the un-translate commit's stated intent and the howtos.md review step (which says to remove the fuzzy flag only after human review).
    • Fuzzy flag removed without review · Line 19325-19326
      The placeholder token `'superset.example.com'` (used as a URL host placeholder in `EmbeddedModal/index.tsx:216`) now has an empty Spanish msgstr with no `#, fuzzy` marker. Spanish users will see the English hostname placeholder — functionally acceptable but the howtos.md review step was not applied.
    • Fuzzy flag removed without review · Line 19443-19444
      The placeholder token `'your-project-1234-a1'` (used as a GCP project ID placeholder in `CommonParameters.tsx:362`) now has an empty Spanish msgstr with no `#, fuzzy` marker. Spanish users will see the English project ID placeholder — functionally acceptable but the howtos.md review step was not applied.
Review Details
  • Files reviewed - 3 · Commit Range: 9970a1d..9970a1d
    • superset/translations/es/LC_MESSAGES/messages.po
    • superset/translations/fi/LC_MESSAGES/messages.po
    • superset/translations/th/LC_MESSAGES/messages.po
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@codecov

codecov Bot commented Jul 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.59%. Comparing base (0370384) to head (8d35eea).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #41652      +/-   ##
==========================================
- Coverage   64.59%   64.59%   -0.01%     
==========================================
  Files        2684     2684              
  Lines      148283   148254      -29     
  Branches    34158    34144      -14     
==========================================
- Hits        95780    95758      -22     
+ Misses      50761    50751      -10     
- Partials     1742     1745       +3     
Flag Coverage Δ
hive 39.23% <ø> (ø)
mysql 57.83% <ø> (?)
postgres 57.89% <ø> (-0.01%) ⬇️
presto 40.76% <ø> (ø)
python 59.28% <ø> (+0.02%) ⬆️
sqlite 57.47% <ø> (ø)
unit 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@rusackas
rusackas merged commit b23cef1 into master Jul 3, 2026
59 checks passed
@rusackas
rusackas deleted the fix/i18n-untranslate-dnt-tokens branch July 3, 2026 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

i18n:spanish Translation related to Spanish language i18n Namespace | Anything related to localization size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants