cds-snc / platform-forms-client

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

Language of preview/test does not match #3844

Closed anikbrazeau closed 5 days ago

anikbrazeau commented 1 week ago

Description

English content in French for Preview/Test

Steps to reproduce

  1. Go to Conditional logic environment
  2. Create sections
  3. Go to test form
  4. Notice "Review your answers before submitting the form." in English even when in French
  5. Notice "Edit" in English even when in French
  6. Notice "Go back" in English even when in French

Details

Expected behaviour

Preview content should match language of previewing.

Screenshots or videos

Screenshot 2024-06-17 at 9.47.33 AM.png
anikbrazeau commented 6 days ago

This is still an issue, the buttons are in the interface language but should be in the form preview language.

All copy that will show up in the form should match this toggled language:

Screenshot 2024-06-24 at 2 33 41 PM Screenshot 2024-06-24 at 2 34 00 PM Screenshot 2024-06-24 at 2 33 49 PM Screenshot 2024-06-24 at 2 33 55 PM
Abi-Nada commented 6 days ago

Thanks for validating, Anik! @thiessenp-cds we've confirmed this issue still persists, so I've assigned you to take a look during this sprint :) Thank you!

timarney commented 5 days ago

@thiessenp-cds

I started a PR here

https://github.com/cds-snc/platform-forms-client/pull/3899