[BUG] Formio 8 with Angular 18 expects [language] input to be an EventEmitter not a string. It throws console error despite sending language as EventEmitter
Environment
Please provide as many details as you can:
- Hosting type
- [x] Local deployment
- Version: 8.0.0
- [x] Local deployment
- Formio.js version: 5.0.0
- Frontend framework: Angular 18.2
- Browser: chrome
- Browser version: 132.0
Steps to Reproduce
- Trying to pass string 'es' to [language] input in formio angular selector throws type 'String' is not assignable to type EventEmitter
- Documentation describes language as a string input
- I created an EventEmitter
which executes and sends 'es' string to [language] input, and language changes correctly. - Also documentation says to set la language con options but FormioOptions interface doesn't allow language attribute in new version anymore.
Expected behavior
To allow developers to assign language in options or to create a new input to send current language as string
Looks like you should be able to pass an event emitter or a string to the language option. Created a pr to fix this here https://github.com/formio/angular/pull/1136
"Also documentation says to set la language con options but FormioOptions interface doesn't allow language attribute in new version anymore." Were in the documentation do you see this? We'll try and get that updated as well For internal reference: FIO-10134
Looks like you should be able to pass an event emitter or a string to the language option. Created a pr to fix this here #1136
"Also documentation says to set la language con options but FormioOptions interface doesn't allow language attribute in new version anymore." Were in the documentation do you see this? We'll try and get that updated as well For internal reference: FIO-10134
Hello, documentation says to use it as a render option in https://github.com/formio/angular/wiki/Translations#project-context
We're still not being able to use it a string sending it as a input in angular component.