cds-snc / platform-forms-client

NextJS application that serves the public-facing website for Forms
https://forms-staging.cdssandbox.xyz/
MIT License
35 stars 13 forks source link

Form preview doesn't show all elements in the selected language #4683

Open jprince-cds opened 1 day ago

jprince-cds commented 1 day ago

Description

When previewing a form, the language toggle is used to preview the form in either English or French. However, some elements on the previewed form respond to the whole page's language instead of the preview language.

Steps to reproduce

  1. Create a form with required elements and dropdowns.
  2. Preview the form and switch the preview toggle to French.
  3. Some elements such as "Required" or "No selection" are showing up in English instead of French.

Other case:

  1. Create a form with required elements and dropdowns.
  2. Switch the whole page to French (top right).
  3. Preview the form and switch the preview toggle to English.
  4. Some elements such as "Pas de sélection" are showing up in French instead of English.

Expected behaviour

When previewing the form, all elements should match the language selected for the preview.

Screenshots or videos

image.png

Additional context

We received multiple Freshdesk tickets worrying about this.