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: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
label:
en: Port
zh: 端口
required: true
rule: paramPort
type: number
@@ -13,6 +16,9 @@ additionalProperties:
envKey: DOWNLOAD_DIR
labelEn: Download Directory
labelZh: 下载目录
label:
en: Download Directory
zh: 下载目录
required: true
type: text
- default: "1000"
@@ -20,6 +26,9 @@ additionalProperties:
envKey: UID
labelEn: UID
labelZh: 用户 ID
label:
en: UID
zh: 用户 ID
required: true
type: number
- default: "1000"
@@ -27,6 +36,9 @@ additionalProperties:
envKey: GID
labelEn: GID
labelZh: 用户组 ID
label:
en: GID
zh: 用户组 ID
required: true
type: number
- default: "auto"
@@ -34,6 +46,9 @@ additionalProperties:
envKey: DEFAULT_THEME
labelEn: Default Theme
labelZh: 默认主题
label:
en: Default Theme
zh: 默认主题
required: true
type: select
values:
@@ -48,6 +63,9 @@ additionalProperties:
envKey: AUDIO_DOWNLOAD_DIR
labelEn: Audio Download Directory
labelZh: 音频下载目录
label:
en: Audio Download Directory
zh: 音频下载目录
required: false
type: text
- default: "/downloads/.metube"
@@ -55,6 +73,9 @@ additionalProperties:
envKey: STATE_DIR
labelEn: State Directory
labelZh: 状态目录
label:
en: State Directory
zh: 状态目录
required: true
type: text
- default: "/downloads/temp"
@@ -62,6 +83,9 @@ additionalProperties:
envKey: TEMP_DIR
labelEn: Temp Directory
labelZh: 临时目录
label:
en: Temp Directory
zh: 临时目录
required: false
type: text
- default: "false"
@@ -69,6 +93,9 @@ additionalProperties:
envKey: DOWNLOAD_DIRS_INDEXABLE
labelEn: Download Dirs Indexable
labelZh: 目录可索引
label:
en: Download Dirs Indexable
zh: 目录可索引
required: true
type: select
values:
@@ -81,6 +108,9 @@ additionalProperties:
envKey: CUSTOM_DIRS
labelEn: Custom Directories
labelZh: 自定义目录
label:
en: Custom Directories
zh: 自定义目录
required: true
type: select
values:
@@ -93,6 +123,9 @@ additionalProperties:
envKey: CREATE_CUSTOM_DIRS
labelEn: Create Custom Directories
labelZh: 创建自定义目录
label:
en: Create Custom Directories
zh: 创建自定义目录
required: true
type: select
values:
@@ -105,6 +138,9 @@ additionalProperties:
envKey: DELETE_FILE_ON_TRASHCAN
labelEn: Delete File on Trashcan
labelZh: 删除文件
label:
en: Delete File on Trashcan
zh: 删除文件
required: true
type: select
values:
@@ -117,6 +153,9 @@ additionalProperties:
envKey: URL_PREFIX
labelEn: URL Prefix
labelZh: URL 前缀
label:
en: URL Prefix
zh: URL 前缀
required: true
type: text
- default: ""
@@ -124,6 +163,9 @@ additionalProperties:
envKey: PUBLIC_HOST_URL
labelEn: Public Host URL
labelZh: 公共主机URL
label:
en: Public Host URL
zh: 公共主机URL
required: false
type: text
- default: ""
@@ -131,6 +173,9 @@ additionalProperties:
envKey: PUBLIC_HOST_AUDIO_URL
labelEn: Public Host Audio URL
labelZh: 公共音频主机URL
label:
en: Public Host Audio URL
zh: 公共音频主机URL
required: false
type: text
- default: "false"
@@ -138,6 +183,9 @@ additionalProperties:
envKey: DEFAULT_OPTION_PLAYLIST_STRICT_MODE
labelEn: Strict Playlist Mode
labelZh: 严格播放列表模式
label:
en: Strict Playlist Mode
zh: 严格播放列表模式
required: true
type: select
values:
@@ -150,5 +198,8 @@ additionalProperties:
envKey: DEFAULT_OPTION_PLAYLIST_ITEM_LIMIT
labelEn: Playlist Item Limit
labelZh: 播放列表项限制
label:
en: Playlist Item Limit
zh: 播放列表项限制
required: true
type: number