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: NACOS_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
label:
en: Data persistence path
zh: 数据持久化路径
required: true
type: text
- default: 8080
@@ -12,6 +15,9 @@ additionalProperties:
envKey: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI port
label:
en: WebUI port
zh: WebUI 端口
required: true
rule: paramPort
type: number
@@ -20,6 +26,9 @@ additionalProperties:
envKey: PANEL_APP_PORT_API
labelZh: WebUI API 端口
labelEn: WebUI API port
label:
en: WebUI API port
zh: WebUI API 端口
required: true
rule: paramPort
type: number
@@ -28,6 +37,9 @@ additionalProperties:
envKey: PANEL_APP_PORT_GRPC
labelZh: Nacos gRPC 端口
labelEn: Nacos gRPC port
label:
en: Nacos gRPC port
zh: Nacos gRPC 端口
required: true
rule: paramPort
type: number
@@ -35,6 +47,9 @@ additionalProperties:
envKey: PREFER_HOST_MODE
labelZh: IP模式/域名模式
labelEn: IP mode/hostname mode
label:
en: IP mode/hostname mode
zh: IP模式/域名模式
required: true
type: select
values:
@@ -47,6 +62,9 @@ additionalProperties:
envKey: NACOS_SERVER_IP
labelZh: 服务IP
labelEn: Server IP
label:
en: Server IP
zh: 服务IP
required: true
type: text
- default: "serverIdentity"
@@ -54,6 +72,9 @@ additionalProperties:
envKey: NACOS_AUTH_IDENTITY_KEY
labelZh: Nacos身份验证密钥键
labelEn: Nacos auth identity key
label:
en: Nacos auth identity key
zh: Nacos身份验证密钥键
required: true
type: text
- default: "security"
@@ -61,6 +82,9 @@ additionalProperties:
envKey: NACOS_AUTH_IDENTITY_VALUE
labelZh: Nacos身份验证密钥值
labelEn: Nacos auth identity value
label:
en: Nacos auth identity value
zh: Nacos身份验证密钥值
required: true
type: text
- default: "SecretKey012345678901234567890123456789012345678901234567890123456789"
@@ -68,6 +92,9 @@ additionalProperties:
envKey: NACOS_AUTH_TOKEN
labelZh: Nacos身份验证令牌至少32位字符的Base64编码
labelEn: Nacos auth token
label:
en: Nacos auth token
zh: Nacos身份验证令牌至少32位字符的Base64编码
required: true
type: text
- default: "512m"
@@ -75,6 +102,9 @@ additionalProperties:
envKey: JVM_XMS
labelZh: JVM_XMS (初始内存大小)
labelEn: JVM_XMS (Initial memory size)
label:
en: JVM_XMS (Initial memory size)
zh: JVM_XMS (初始内存大小)
required: true
type: text
- default: "2g"
@@ -82,6 +112,9 @@ additionalProperties:
envKey: JVM_XMX
labelEn: JVM_XMX (Maximum memory size)
labelZh: JVM_XMX (最大内存大小)
label:
en: JVM_XMX (Maximum memory size)
zh: JVM_XMX (最大内存大小)
required: true
type: text
- default: "128m"
@@ -89,6 +122,9 @@ additionalProperties:
envKey: JVM_XMN
labelEn: JVM_XMN (New generation memory)
labelZh: JVM_XMN (新生代内存)
label:
en: JVM_XMN (New generation memory)
zh: JVM_XMN (新生代内存)
required: true
type: text
- default: "128m"
@@ -96,6 +132,9 @@ additionalProperties:
envKey: JVM_MS
labelEn: JVM_MS (Initial metaspace)
labelZh: JVM_MS (初始元空间大小)
label:
en: JVM_MS (Initial metaspace)
zh: JVM_MS (初始元空间大小)
required: true
type: text
- default: "320m"
@@ -103,5 +142,8 @@ additionalProperties:
envKey: JVM_MMS
labelEn: JVM_MMS (Maximum metaspace)
labelZh: JVM_MMS (最大元空间大小)
label:
en: JVM_MMS (Maximum metaspace)
zh: JVM_MMS (最大元空间大小)
required: true
type: text