Symptom
On a zh-CN console, a wizard form renders its chrome in English. Example: the showcase's showcase_new_project_wizard page shows Cancel, Step 1 of 3 and Next under a Chinese UI.
Mechanism
packages/plugin-form/src/WizardForm.tsx (objectui main 4b742f41d) writes the footer strings as literals, with no translation call:
{schema.cancelText || 'Cancel'}
Step {currentStep + 1} of {totalSteps}
{schema.prevText || 'Back'}
submitting ? 'Submitting...' : (schema.submitText || (schema.mode === 'create' ? 'Create' : 'Update'))
{schema.nextText || 'Next'}
- the section fallback
`Step ${index + 1}`
An author can override some of these per schema (cancelText, prevText, nextText, submitText). The defaults and the step counter cannot be overridden, and they are never localized.
Reproduction
- Open objectstack's showcase at objectui pin
dd3f7e1be356 with the console locale zh.
- Go to 功能展示 → 工作区 → 新建项目(向导).
- The footer reads
Cancel, Step 1 of 3 and Next.
Expected
The defaults and the step counter resolve through the console's i18n catalogue, the way the rest of plugin-form's chrome does. An authored cancelText / nextText / prevText / submitText still wins.
Symptom
On a zh-CN console, a wizard form renders its chrome in English. Example: the showcase's
showcase_new_project_wizardpage showsCancel,Step 1 of 3andNextunder a Chinese UI.Mechanism
packages/plugin-form/src/WizardForm.tsx(objectui main4b742f41d) writes the footer strings as literals, with no translation call:{schema.cancelText || 'Cancel'}Step {currentStep + 1} of {totalSteps}{schema.prevText || 'Back'}submitting ? 'Submitting...' : (schema.submitText || (schema.mode === 'create' ? 'Create' : 'Update')){schema.nextText || 'Next'}`Step ${index + 1}`An author can override some of these per schema (
cancelText,prevText,nextText,submitText). The defaults and the step counter cannot be overridden, and they are never localized.Reproduction
dd3f7e1be356with the console localezh.Cancel,Step 1 of 3andNext.Expected
The defaults and the step counter resolve through the console's i18n catalogue, the way the rest of
plugin-form's chrome does. An authoredcancelText/nextText/prevText/submitTextstill wins.