Repository navigation
fix(i18n): un-translate do-not-translate tokens in es/fi/th catalogs - #41652
Conversation
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]>
There was a problem hiding this comment.
Code Review Agent Run #07ef2b
Actionable Suggestions - 7
-
superset/translations/th/LC_MESSAGES/messages.po - 7
- Translation regression: crontab · Line 30731-30731
- Translation regression: error_message · Line 31091-31091
- Translation regression: pivoted_xlsx · Line 31669-31669
- Translation regression: schema1,schema2 · Line 31789-31789
- Translation regression: sql · Line 31816-31816
- Translation regression: step-after · Line 31843-31843
- Translation regression: step-before · Line 31846-31846
Additional Suggestions - 4
-
superset/translations/th/LC_MESSAGES/messages.po - 1
-
Empty translation regresses placeholder token handling · Line 9955-9956Removing 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-19268The 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-19326The 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-19444The 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
Codecov Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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 therucatalog: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:
esfithruis 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.pyskips these via aDO_NOT_TRANSLATEset 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
ADDITIONAL INFORMATION