Describe the bug
I was using the Date Picker component in the Form.io sandbox and encountered an issue with language support for Flatpickr. It appears that the Flatpickr library used in Form.io supports 65 languages. However, when specifying a language code that is not supported, the date picker fails to open entirely, sandbox is not working properly.
Version/Branch
v5.0.0-rc.98
To Reproduce
Steps to reproduce the behavior:
Open the Form.io sandbox and add a Date Picker component.
Configure the component to use an unsupported language code.
Attempt to open the calendar and observe that it does not open or try to make any changes in the sandbox.
Expected behavior
When using a language code that is unsupported, I expected the Date Picker to fall back to the default calendar, most likely in English, rather than not functioning at all.
Observed Behavior
If a language code outside the 65 supported ones is set, the Date Picker component does not display, and no fallback to English occurs.
After review, we don't expect to resource a developer to investigate this in the near future but would be happy to review any contributions to resolve this behavior.
Describe the bug I was using the Date Picker component in the Form.io sandbox and encountered an issue with language support for Flatpickr. It appears that the Flatpickr library used in Form.io supports 65 languages. However, when specifying a language code that is not supported, the date picker fails to open entirely, sandbox is not working properly.
Version/Branch v5.0.0-rc.98
To Reproduce Steps to reproduce the behavior:
Expected behavior When using a language code that is unsupported, I expected the Date Picker to fall back to the default calendar, most likely in English, rather than not functioning at all.
Observed Behavior If a language code outside the 65 supported ones is set, the Date Picker component does not display, and no fallback to English occurs.
Screenshots 'es' is supported by flatpickr
'el' is not supported by flatpickr