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

@@ -5,6 +5,9 @@ additionalProperties:
envKey: SERVERSTATUS_CONFIG_PATH
labelEn: Server Status Config Path
labelZh: 服务器状态配置路径
label:
en: Server Status Config Path
zh: 服务器状态配置路径
required: true
type: text
- default: "./data/web/json"
@@ -12,6 +15,9 @@ additionalProperties:
envKey: SERVERSTATUS_JSON_PATH
labelEn: Server Status Monthly Traffic State Path
labelZh: 探针月流量状态路径
label:
en: Server Status Monthly Traffic State Path
zh: 探针月流量状态路径
required: true
type: text
- default: "35601"
@@ -19,6 +25,9 @@ additionalProperties:
envKey: PANEL_APP_PORT_COMM
labelEn: Communication Port
labelZh: 通信端口
label:
en: Communication Port
zh: 通信端口
required: true
rule: paramPort
type: number
@@ -27,6 +36,9 @@ additionalProperties:
envKey: PANEL_APP_PORT_HTTP
labelEn: Web Port
labelZh: Web 端口
label:
en: Web Port
zh: Web 端口
required: true
rule: paramPort
type: number

View File

@@ -5,6 +5,9 @@ additionalProperties:
envKey: SERVERSTATUS_CONFIG_PATH
labelEn: Server Status Config Path
labelZh: 服务器状态配置路径
label:
en: Server Status Config Path
zh: 服务器状态配置路径
required: true
type: text
- default: "./data/web/json"
@@ -12,6 +15,9 @@ additionalProperties:
envKey: SERVERSTATUS_JSON_PATH
labelEn: Server Status Monthly Traffic State Path
labelZh: 探针月流量状态路径
label:
en: Server Status Monthly Traffic State Path
zh: 探针月流量状态路径
required: true
type: text
- default: "35601"
@@ -19,6 +25,9 @@ additionalProperties:
envKey: PANEL_APP_PORT_COMM
labelEn: Communication Port
labelZh: 通信端口
label:
en: Communication Port
zh: 通信端口
required: true
rule: paramPort
type: number
@@ -27,6 +36,9 @@ additionalProperties:
envKey: PANEL_APP_PORT_HTTP
labelEn: Web Port
labelZh: Web 端口
label:
en: Web Port
zh: Web 端口
required: true
rule: paramPort
type: number