YuriyKrasilnikov opened a new pull request, #37790:
URL: https://github.com/apache/superset/pull/37790
## Summary
Adds content localization support to Apache Superset — dashboard titles,
chart names/descriptions, and native filter labels can be translated per
locale. Viewers see content in their UI language automatically.
- `translations` JSON column on Dashboard and Slice models with
`LocalizableMixin`
- API: localized responses by default, editor mode via
`?include_translations=true`
- Frontend: inline `LocaleSwitcher` dropdown in Input suffix for switching
between DEFAULT and per-locale text
- Jinja macro `{{ current_user_locale() }}` for locale-aware SQL queries
- Embedded SDK `setLocale()` method for dynamic locale switching
- Export/import support with backward compatibility
- Feature-flagged (`ENABLE_CONTENT_LOCALIZATION`, default: off)
- XSS sanitization, BCP 47 validation, configurable size limits
Resolves #37789
## Test plan
- [ ] ~150 unit tests (models, API schemas, validation, frontend components)
- [ ] 4 Playwright E2E tests (CRUD, locale switching, available locales, UI
integration)
- [ ] Manual: enable flag → create dashboard → add translations via
LocaleSwitcher → switch UI language → verify localized content
- [ ] Verify feature flag OFF: no UI changes, PUT with translations rejected
- [ ] Verify export/import roundtrip preserves translations
--
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]