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

@@ -10,6 +10,9 @@ additionalProperties:
envKey: PANEL_DB_TYPE
labelZh: MySQL 服务 (前置检查)
labelEn: Database Service (Pre-check)
label:
en: Database Service (Pre-check)
zh: MySQL 服务 (前置检查)
required: true
type: apps
values:
@@ -24,6 +27,9 @@ additionalProperties:
envKey: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI port
label:
en: WebUI port
zh: WebUI 端口
required: true
rule: paramPort
type: number
@@ -32,6 +38,9 @@ additionalProperties:
envKey: JWT_SECRET
labelZh: JWT 密钥
labelEn: JWT secret
label:
en: JWT secret
zh: JWT 密钥
required: true
type: password
- default: "127.0.0.1"
@@ -39,6 +48,9 @@ additionalProperties:
envKey: DATABASE_HOST
labelZh: 数据库 主机
labelEn: Database Host
label:
en: Database Host
zh: 数据库 主机
required: true
type: text
- default: 3306
@@ -46,6 +58,9 @@ additionalProperties:
envKey: DATABASE_PORT
labelZh: 数据库 端口
labelEn: Database Port
label:
en: Database Port
zh: 数据库 端口
required: true
rule: paramPort
type: number
@@ -54,6 +69,9 @@ additionalProperties:
envKey: DATABASE_NAME
labelZh: 数据库 名称
labelEn: Database Name
label:
en: Database Name
zh: 数据库 名称
required: true
type: text
- default: "kotatsu-syncserver"
@@ -61,6 +79,9 @@ additionalProperties:
envKey: DATABASE_USER
labelZh: 数据库 用户名
labelEn: Database Username
label:
en: Database Username
zh: 数据库 用户名
required: true
type: text
- default: ""
@@ -68,6 +89,9 @@ additionalProperties:
envKey: DATABASE_PASSWORD
labelZh: 数据库 密码
labelEn: Database Password
label:
en: Database Password
zh: 数据库 密码
required: true
type: password
- default: "true"
@@ -75,6 +99,9 @@ additionalProperties:
envKey: ALLOW_NEW_REGISTER
labelZh: 允许新用户注册
labelEn: Allow new users to register
label:
en: Allow new users to register
zh: 允许新用户注册
required: true
type: select
values: