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 <[email protected]>
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 <[email protected]>
---
 .../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.

Reply via email to