You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using the Form component in the latest @formio/react version, I encountered a type error with the i18n options. This might be due to an incorrect type definition.
The i18n type defined in @formio/js/lib/cjs/Form.d.ts as i18n?: { [key: string]: string; } | undefined; is incompatible with the runtime type, which should be i18n?: { [key: string]: Record<string, string>; } | undefined;. To Reproduce
import{Form}from'@formio/react'<Formoptions={{i18n: {sp: {'First Name': 'Nombre de pila',}}}}/>
Screenshots
The text was updated successfully, but these errors were encountered:
Describe the bug
When using the Form component in the latest
@formio/react
version, I encountered a type error with thei18n
options. This might be due to an incorrect type definition.The
i18n
type defined in@formio/js/lib/cjs/Form.d.ts
asi18n?: { [key: string]: string; } | undefined;
is incompatible with the runtime type, which should bei18n?: { [key: string]: Record<string, string>; } | undefined;
.To Reproduce
Screenshots

The text was updated successfully, but these errors were encountered: