Skip to content

plugin-form: WizardForm's footer and step labels are hard-coded English (Cancel / Back / Next / Submitting... / Create / Update / "Step x of y") #10999

Description

@objectstack-fleet

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

  1. Open objectstack's showcase at objectui pin dd3f7e1be356 with the console locale zh.
  2. Go to 功能展示 → 工作区 → 新建项目(向导).
  3. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdomain:uiobjectui ui stream: fix lands on the published library or apps — objectui execution seati18npriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions