rusackas opened a new pull request, #37776:
URL: https://github.com/apache/superset/pull/37776
### SUMMARY
This PR addresses missing internationalization (i18n) support across the
frontend codebase by wrapping user-facing strings with the `t()` translation
function.
**Files modified (26 frontend files):**
- `packages/superset-core/src/ui/components/Alert/index.tsx` - Default
message fallback
- `src/components/Datasource/components/CollectionTable/index.tsx` - Delete
item aria-label
- `src/components/ErrorMessage/IssueCode.tsx` - Docs link aria-label
- `src/components/MessageToasts/Toast.tsx` - Close button aria-label
- `src/dashboard/components/EmbeddedModal/index.tsx` - Domain placeholder
- `src/dashboard/components/SliceHeaderControls/index.tsx` - More Options
aria-label
- `src/dashboard/components/URLShortLinkButton/index.tsx` - Email link
aria-label
- `src/explore/components/EmbedCodeContent.tsx` - Copy to clipboard
aria-label
- `src/explore/components/PropertiesModal/index.tsx` - Cache timeout
aria-label
- `src/explore/components/SaveModal.tsx` - Name and dataset placeholders
- `src/explore/components/controls/AnnotationLayerControl/index.tsx` -
Hidden text
-
`src/explore/components/controls/DndColumnSelectControl/useResizeButton.tsx` -
Resize aria-label
-
`src/explore/components/controls/FilterControl/AdhocFilterEditPopover/index.tsx`
- Resize aria-label
-
`src/explore/components/controls/MetricControl/AdhocMetricEditPopover/index.tsx`
- Resize aria-label
-
`src/features/databases/DatabaseModal/DatabaseConnectionForm/CommonParameters.tsx`
- Project ID placeholder, HTTP Path labels, SSL toggle
-
`src/features/databases/DatabaseModal/DatabaseConnectionForm/OAuth2ClientField.tsx`
- OAuth2 labels and placeholders
-
`src/features/databases/DatabaseModal/DatabaseConnectionForm/ValidatedInputField.tsx`
- Account, Warehouse, Role labels
- `src/features/databases/DatabaseModal/ExtraOptions.tsx` - Schema
placeholder
- `src/features/databases/DatabaseModal/SSHTunnelForm.tsx` - Show/hide
password tooltips
- `src/features/databases/DatabaseModal/index.tsx` - Google Sheets alert
messages
- `src/features/databases/UploadDataModel/index.tsx` - Validation messages
- `src/features/datasets/AddDataset/RightPanel/index.tsx` - Right Panel text
- `src/features/userInfo/UserInfoModal.tsx` - Password placeholder
- `src/features/users/UserListModal.tsx` - Password placeholder
- `src/pages/Register/index.tsx` - Registration success messages, Captcha
label
- `src/pages/UserInfo/index.tsx` - User info labels and descriptions
**Translation catalogs updated:**
- Regenerated `messages.pot` template with all new strings
- Updated all 22 language catalogs (ar, ca, de, en, es, fa, fr, it, ja, ko,
mi, nl, pl, pt, pt_BR, ru, sk, sl, tr, uk, zh, zh_TW)
### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A - This is a code-level i18n improvement. The UI appearance remains
unchanged; strings are now translatable.
### TESTING INSTRUCTIONS
1. Verify the application builds without errors: `npm run build`
2. Run frontend tests: `npm run test`
3. For manual verification:
- Enable a non-English locale in Superset config
- Navigate to areas with updated strings (database modal, explore
controls, user info page)
- Confirm strings appear in the translation catalog and can be translated
### ADDITIONAL INFORMATION
- [ ] Has associated issue:
- [ ] Required feature flags:
- [ ] Changes UI
- [ ] Includes DB Migration
- [ ] Introduces new feature or API
- [ ] Removes existing feature or API
🤖 Generated with [Claude Code](https://claude.ai/code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]