This is an automated email from the ASF dual-hosted git repository.
pierrejeambrun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new a4b845abe40 Fix translation file names (#51078)
a4b845abe40 is described below
commit a4b845abe406027e82af122cad37693f27432911
Author: Pierre Jeambrun <[email protected]>
AuthorDate: Mon May 26 15:28:18 2025 +0200
Fix translation file names (#51078)
---
airflow-core/src/airflow/ui/src/i18n/config.ts | 8 ++++----
airflow-core/src/airflow/ui/src/i18n/locales/de/common.json | 2 +-
airflow-core/src/airflow/ui/src/i18n/locales/en/common.json | 2 +-
airflow-core/src/airflow/ui/src/i18n/locales/ko/common.json | 2 +-
.../src/airflow/ui/src/i18n/locales/{zh_TW => zh-TW}/common.json | 2 +-
.../airflow/ui/src/i18n/locales/{zh_TW => zh-TW}/dashboard.json | 0
6 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/airflow-core/src/airflow/ui/src/i18n/config.ts
b/airflow-core/src/airflow/ui/src/i18n/config.ts
index 5178636f809..1411f23c6f8 100644
--- a/airflow-core/src/airflow/ui/src/i18n/config.ts
+++ b/airflow-core/src/airflow/ui/src/i18n/config.ts
@@ -26,8 +26,8 @@ import enCommon from "./locales/en/common.json";
import enDashboard from "./locales/en/dashboard.json";
import koCommon from "./locales/ko/common.json";
import koDashboard from "./locales/ko/dashboard.json";
-import zhTWCommon from "./locales/zh_TW/common.json";
-import zhTWDashboard from "./locales/zh_TW/dashboard.json";
+import zhTWCommon from "./locales/zh-TW/common.json";
+import zhTWDashboard from "./locales/zh-TW/dashboard.json";
// TODO: Dynamically load translation files
// import Backend from 'i18next-http-backend';
@@ -36,7 +36,7 @@ export const supportedLanguages = [
{ code: "de", name: "Deutsch" },
{ code: "en", name: "English" },
{ code: "ko", name: "한국어" },
- { code: "zh_TW", name: "繁體中文" },
+ { code: "zh-TW", name: "繁體中文" },
] as const;
export const defaultLanguage = "en";
@@ -55,7 +55,7 @@ const resources = {
common: koCommon,
dashboard: koDashboard,
},
- zh_TW: {
+ "zh-TW": {
common: zhTWCommon,
dashboard: zhTWDashboard,
},
diff --git a/airflow-core/src/airflow/ui/src/i18n/locales/de/common.json
b/airflow-core/src/airflow/ui/src/i18n/locales/de/common.json
index b2421eb635e..61e2a27855e 100644
--- a/airflow-core/src/airflow/ui/src/i18n/locales/de/common.json
+++ b/airflow-core/src/airflow/ui/src/i18n/locales/de/common.json
@@ -7,7 +7,7 @@
"timezone": "Zeitzone",
"user": "Benutzer",
"language": {
- "zh_TW": "Traditionelles Chinesisch",
+ "zh-TW": "Traditionelles Chinesisch",
"en": "Englisch",
"de": "Deutsch",
"ko": "Koreanisch",
diff --git a/airflow-core/src/airflow/ui/src/i18n/locales/en/common.json
b/airflow-core/src/airflow/ui/src/i18n/locales/en/common.json
index 29183704383..0d66ca93289 100644
--- a/airflow-core/src/airflow/ui/src/i18n/locales/en/common.json
+++ b/airflow-core/src/airflow/ui/src/i18n/locales/en/common.json
@@ -7,7 +7,7 @@
"timezone": "timezone",
"user": "User",
"language": {
- "zh_TW": "Traditional Chinese",
+ "zh-TW": "Traditional Chinese",
"en": "English",
"de": "German",
"ko": "Korean",
diff --git a/airflow-core/src/airflow/ui/src/i18n/locales/ko/common.json
b/airflow-core/src/airflow/ui/src/i18n/locales/ko/common.json
index 3f175e47b33..8012a46319c 100644
--- a/airflow-core/src/airflow/ui/src/i18n/locales/ko/common.json
+++ b/airflow-core/src/airflow/ui/src/i18n/locales/ko/common.json
@@ -7,7 +7,7 @@
"timezone": "시간대",
"user": "사용자",
"language": {
- "zh_TW": "중국어 번체",
+ "zh-TW": "중국어 번체",
"en": "영어",
"de": "독일어",
"ko": "한국어",
diff --git a/airflow-core/src/airflow/ui/src/i18n/locales/zh_TW/common.json
b/airflow-core/src/airflow/ui/src/i18n/locales/zh-TW/common.json
similarity index 98%
rename from airflow-core/src/airflow/ui/src/i18n/locales/zh_TW/common.json
rename to airflow-core/src/airflow/ui/src/i18n/locales/zh-TW/common.json
index f73f0dbb9ac..9c2769f9768 100644
--- a/airflow-core/src/airflow/ui/src/i18n/locales/zh_TW/common.json
+++ b/airflow-core/src/airflow/ui/src/i18n/locales/zh-TW/common.json
@@ -7,7 +7,7 @@
"timezone": "時區",
"user": "使用者",
"language": {
- "zh_TW": "繁體中文",
+ "zh-TW": "繁體中文",
"en": "英文",
"de": "德文",
"ko": "韓國人",
diff --git a/airflow-core/src/airflow/ui/src/i18n/locales/zh_TW/dashboard.json
b/airflow-core/src/airflow/ui/src/i18n/locales/zh-TW/dashboard.json
similarity index 100%
rename from airflow-core/src/airflow/ui/src/i18n/locales/zh_TW/dashboard.json
rename to airflow-core/src/airflow/ui/src/i18n/locales/zh-TW/dashboard.json