diff --git a/frontend/src/api/language.js b/frontend/src/api/language.js
index 1f1dca3..4e8f101 100644
--- a/frontend/src/api/language.js
+++ b/frontend/src/api/language.js
@@ -14,10 +14,11 @@ const FALLBACK_BY_LOCALE = {
ja_jp: ['en_us', 'zh_cn'],
zh_cn: []
}
+/* 顶栏语言切换用英文缩写展示(ZH/EN/JA,与 locales 文件名短码一致),与 generated 页面模板内静态文案保持一致 */
const LOCALE_LABEL_MAP = {
- zh_cn: '中',
- en_us: '英',
- ja_jp: '日'
+ zh_cn: 'ZH',
+ en_us: 'EN',
+ ja_jp: 'JA'
}
const HTML_LANG_MAP = {
zh_cn: 'zh-CN',
diff --git a/frontend/src/generated/about-page-body.html b/frontend/src/generated/about-page-body.html
index 64f7e6e..12ca71b 100644
--- a/frontend/src/generated/about-page-body.html
+++ b/frontend/src/generated/about-page-body.html
@@ -73,9 +73,9 @@
- 中
- | 英
- | 日
+ ZH
+ | EN
+ | JA
diff --git a/frontend/src/generated/contact-page-body.html b/frontend/src/generated/contact-page-body.html
index 49afa63..15b62e6 100644
--- a/frontend/src/generated/contact-page-body.html
+++ b/frontend/src/generated/contact-page-body.html
@@ -73,9 +73,9 @@
- 中
- | 英
- | 日
+ ZH
+ | EN
+ | JA
diff --git a/frontend/src/generated/culture-page-body.html b/frontend/src/generated/culture-page-body.html
index b18dbfa..cecff1e 100644
--- a/frontend/src/generated/culture-page-body.html
+++ b/frontend/src/generated/culture-page-body.html
@@ -73,9 +73,9 @@
- 中
- | 英
- | 日
+ ZH
+ | EN
+ | JA
diff --git a/frontend/src/generated/history-page-body.html b/frontend/src/generated/history-page-body.html
index fd9aa8f..d0407b3 100644
--- a/frontend/src/generated/history-page-body.html
+++ b/frontend/src/generated/history-page-body.html
@@ -73,9 +73,9 @@
- 中
- | 英
- | 日
+ ZH
+ | EN
+ | JA
diff --git a/frontend/src/generated/page-body.html b/frontend/src/generated/page-body.html
index 05c4b85..559f162 100644
--- a/frontend/src/generated/page-body.html
+++ b/frontend/src/generated/page-body.html
@@ -214,9 +214,9 @@
- 中
- | 英
- | 日
+ ZH
+ | EN
+ | JA
diff --git a/frontend/src/generated/product-page-body.html b/frontend/src/generated/product-page-body.html
index e614801..7c9548b 100644
--- a/frontend/src/generated/product-page-body.html
+++ b/frontend/src/generated/product-page-body.html
@@ -73,9 +73,9 @@
- 中
- | 英
- | 日
+ ZH
+ | EN
+ | JA
diff --git a/frontend/src/generated/quality-page-body.html b/frontend/src/generated/quality-page-body.html
index 57c0513..4da7780 100644
--- a/frontend/src/generated/quality-page-body.html
+++ b/frontend/src/generated/quality-page-body.html
@@ -73,9 +73,9 @@
- 中
- | 英
- | 日
+ ZH
+ | EN
+ | JA