[i18n] Translate setting options (#1858)

* Collect options

* Translate setting options

* Update locales [skip ci]

* Normalize key

* Revert change of logic

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Chenlei Hu
2024-12-10 09:31:13 -08:00
committed by GitHub
parent 57701f6145
commit 112a693f3d
9 changed files with 418 additions and 68 deletions

View File

@@ -54,7 +54,7 @@ export interface FormItem {
type: SettingInputType | SettingCustomRenderer
tooltip?: string
attrs?: Record<string, any>
options?: Array<string | SettingOption> | ((value: any) => SettingOption[])
options?: Array<string | SettingOption>
}
export interface ISettingGroup {