Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translations not working properly for form io #885

Open
sirolf2009 opened this issue Mar 14, 2024 · 0 comments
Open

Translations not working properly for form io #885

sirolf2009 opened this issue Mar 14, 2024 · 0 comments

Comments

@sirolf2009
Copy link
Contributor

I found a bug in 10.8.3, but it seems like it might be part of 11.2.0 too

In projects/valtimo/components/src/lib/components/form-io/form-io.component.html the formioOptions object is passed on as a options parameter, and this object contains all the translations.

<formio
   (...)
    [options]="obs.formioOptions"
    (...)
  ></formio>

However, according to the formio angular docs, it should be passed as a renderOptions parameter: https://github.com/formio/angular/wiki/Translations

i.e.

<formio
   (...)
    [renderOptions]="obs.formioOptions"
    (...)
  ></formio>

Adding this change fixed my translations problem on the 10.8.3 branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant