1
0

feat(apps): add structured label field to all application configurations

- add nested label field with en and zh translations for all parameters
- maintain existing labelEn and labelZh fields for backward compatibility
- apply consistent internationalization structure across all apps
- improve localization support for multi-language user interfaces
This commit is contained in:
pooneyy
2025-11-06 23:35:02 +08:00
parent 24ed5c9e9d
commit 9779122311
914 changed files with 17477 additions and 886 deletions

View File

@@ -6,12 +6,18 @@ additionalProperties:
key: postgresql
labelEn: Database Service
labelZh: 数据库服务
label:
en: Database Service
zh: 数据库服务
required: true
type: service
- default: 5432
envKey: PANEL_DB_PORT
labelEn: Database port
labelZh: 数据库端口
label:
en: Database port
zh: 数据库端口
random: false
required: true
rule: paramPort
@@ -20,6 +26,9 @@ additionalProperties:
envKey: PANEL_DB_NAME
labelEn: Database
labelZh: 数据库名
label:
en: Database
zh: 数据库名
random: true
required: true
rule: paramCommon
@@ -28,6 +37,9 @@ additionalProperties:
envKey: PANEL_DB_USER
labelEn: User
labelZh: 数据库用户
label:
en: User
zh: 数据库用户
random: true
required: true
rule: paramCommon
@@ -36,6 +48,9 @@ additionalProperties:
envKey: PANEL_DB_USER_PASSWORD
labelEn: Password
labelZh: 数据库用户密码
label:
en: Password
zh: 数据库用户密码
random: true
required: true
rule: paramComplexity
@@ -45,6 +60,9 @@ additionalProperties:
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
label:
en: Port
zh: 端口
required: true
rule: paramPort
type: number
@@ -53,6 +71,9 @@ additionalProperties:
envKey: ICAT_PWDKEY
labelEn: Key for encrypted password (lost and can't log in)
labelZh: 用于加密的密码的密钥 (丢失无法登录)
label:
en: Key for encrypted password (lost and can't log in)
zh: 用于加密的密码的密钥 (丢失无法登录)
random: true
required: true
type: text
@@ -61,5 +82,8 @@ additionalProperties:
envKey: ICAT_COOKIEPWD
labelEn: CookiePassword (at least 32 bits)
labelZh: 登录状态加密密码 (至少32位)
label:
en: CookiePassword (at least 32 bits)
zh: 登录状态加密密码 (至少32位)
required: false
type: text