8000 [Feature] Add multilingual support for dropdown labels in the application installation form · Issue #11032 · 1Panel-dev/1Panel · GitHub
[go: up one dir, main page]

Skip to content

[Feature] Add multilingual support for dropdown labels in the application installation form #11032

@pooneyy

Description

@pooneyy

1Panel Version

2.0.13

Please describe your needs or suggestions for improvements

应用安装表单对下拉选单的 lable 添加多语言支持

以下表单所有语言均显示中文

https://github.com/1Panel-dev/appstore/blob/307fc0e1ad788a46b0113a48c81ffaa5077ee00a/apps/jumpserver/4.10.12/data.yml#L35-L45

Image

Please describe the solution you suggest

在不破坏现有结构的话可考虑增加一个新的键,此处以 label-i18n 为例

    - default: "false"
      envKey: DEBUG
      labelEn: Debug mode
      labelZh: 调试模式
      required: true
      type: select
      values:
        - label: 开启
          label-i18n:
            en: Enable
            ja: 有効にする
            ms: Dayakan
            pt-br: Ativar
            ru: Включить
          value: "true"
        - label: 关闭
          label-i18n:
            en: Disable
            ja: 無効にする
            ms: Lumpuhkan
            pt-br: Desativar
            ru: Выключить
          value: "false"

Additional Information

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0