shahar1 commented on code in PR #56067:
URL: https://github.com/apache/airflow/pull/56067#discussion_r2383501547
##########
airflow-core/src/airflow/ui/src/i18n/config.ts:
##########
@@ -22,23 +22,23 @@ import Backend from "i18next-http-backend";
import { initReactI18next } from "react-i18next";
export const supportedLanguages = [
- { code: "en", name: "English" },
- { code: "ar", name: "العربية" },
- { code: "ca", name: "Català" },
- { code: "de", name: "Deutsch" },
- { code: "es", name: "Español" },
- { code: "fr", name: "Français" },
- { code: "he", name: "עברית" },
- { code: "hi", name: "हिन्दी" },
- { code: "hu", name: "Magyar" },
- { code: "it", name: "Italiano" },
- { code: "ko", name: "한국어" },
- { code: "nl", name: "Nederlands" },
- { code: "pl", name: "Polski" },
- { code: "pt", name: "Português" },
- { code: "tr", name: "Türkçe" },
- { code: "zh-CN", name: "简体中文" },
- { code: "zh-TW", name: "繁體中文" },
+ { code: "en", name: "English", separator: "," },
Review Comment:
I've finally figured out how to do it using only the locale name, so this
definition is not needed anymore
##########
airflow-core/src/airflow/ui/src/i18n/config.ts:
##########
@@ -22,23 +22,23 @@ import Backend from "i18next-http-backend";
import { initReactI18next } from "react-i18next";
export const supportedLanguages = [
- { code: "en", name: "English" },
- { code: "ar", name: "العربية" },
- { code: "ca", name: "Català" },
- { code: "de", name: "Deutsch" },
- { code: "es", name: "Español" },
- { code: "fr", name: "Français" },
- { code: "he", name: "עברית" },
- { code: "hi", name: "हिन्दी" },
- { code: "hu", name: "Magyar" },
- { code: "it", name: "Italiano" },
- { code: "ko", name: "한국어" },
- { code: "nl", name: "Nederlands" },
- { code: "pl", name: "Polski" },
- { code: "pt", name: "Português" },
- { code: "tr", name: "Türkçe" },
- { code: "zh-CN", name: "简体中文" },
- { code: "zh-TW", name: "繁體中文" },
+ { code: "en", name: "English", separator: "," },
Review Comment:
I've finally figured out how to do it using only the locale code, so this
definition is not needed anymore
--
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]