You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2026/07/06 22:38:31 UTC
(superset) branch feat/i18n-expose-backfilled-languages created (now 0fd87956108)
This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a change to branch feat/i18n-expose-backfilled-languages
in repository https://gitbox.apache.org/repos/asf/superset.git
at 0fd87956108 feat(i18n): expose the six newly backfilled locales
This branch includes the following new commits:
new 0fd87956108 feat(i18n): expose the six newly backfilled locales
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(superset) 01/01: feat(i18n): expose the six newly backfilled locales
Posted by ru...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a commit to branch feat/i18n-expose-backfilled-languages
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 0fd879561087a7456e66c682a2eedac862c778ca
Author: Evan Rusackas <ev...@rusackas.com>
AuthorDate: Mon Jul 6 15:38:22 2026 -0700
feat(i18n): expose the six newly backfilled locales
Adds Arabic, Catalan, Persian, Finnish, Thai, and Turkish to the
LANGUAGES reference dict in config.py — all six have fully backfilled
catalogs on master but were not selectable even for operators who
enable i18n. Also completes the frontend Locale type union to the full
set of catalog locales (it had drifted to 12 of 29).
Co-Authored-By: Claude Fable 5 <no...@anthropic.com>
---
.../superset-core/src/translation/types/index.ts | 19 ++++++++++++++++++-
superset/config.py | 6 ++++++
2 files changed, 24 insertions(+), 1 deletion(-)
diff --git a/superset-frontend/packages/superset-core/src/translation/types/index.ts b/superset-frontend/packages/superset-core/src/translation/types/index.ts
index e4fa77734ec..6cd117fbe24 100644
--- a/superset-frontend/packages/superset-core/src/translation/types/index.ts
+++ b/superset-frontend/packages/superset-core/src/translation/types/index.ts
@@ -25,18 +25,35 @@ export { default as __hack_reexport_jed } from './jed';
* Superset supported languages.
*/
export type Locale =
+ | 'ar'
+ | 'ca'
+ | 'cs'
| 'de'
| 'en'
| 'es'
+ | 'fa'
+ | 'fi'
| 'fr'
| 'it'
| 'ja'
| 'ko'
+ | 'lv'
+ | 'mi'
+ | 'nl'
+ | 'pl'
| 'pt'
| 'pt_BR'
+ | 'ro'
| 'ru'
+ | 'sk'
+ | 'sl'
+ | 'sr'
+ | 'sr_Latn'
+ | 'th'
+ | 'tr'
+ | 'uk'
| 'zh'
- | 'zh_TW'; // supported locales in Superset
+ | 'zh_TW'; // every locale with a catalog in superset/translations
/**
* Language pack provided to `jed`.
diff --git a/superset/config.py b/superset/config.py
index 910322d7542..b13ed7034a8 100644
--- a/superset/config.py
+++ b/superset/config.py
@@ -523,6 +523,12 @@ LANGUAGES = {
"uk": {"flag": "ua", "name": "Ukrainian"},
"mi": {"flag": "nz", "name": "Māori"},
"ro": {"flag": "ro", "name": "Romanian"},
+ "ar": {"flag": "sa", "name": "Arabic"},
+ "ca": {"flag": "es", "name": "Catalan"},
+ "fa": {"flag": "ir", "name": "Persian"},
+ "fi": {"flag": "fi", "name": "Finnish"},
+ "th": {"flag": "th", "name": "Thai"},
+ "tr": {"flag": "tr", "name": "Turkish"},
}
# Turning off i18n by default as translation in most languages are
# incomplete and not well maintained.