formio / formio.js

JavaScript powered Forms with JSON Form Builder
https://formio.github.io/formio.js
MIT License
1.9k stars 1.07k forks source link

Issue with Date Picker Component Not Falling Back to Default Language #5903

Open Bhaskara-Varma-D opened 2 weeks ago

Bhaskara-Varma-D commented 2 weeks ago

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:

  1. Open the Form.io sandbox and add a Date Picker component.
  2. Configure the component to use an unsupported language code.
  3. 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.

Screenshots 'es' is supported by flatpickr image

'el' is not supported by flatpickr image

lane-formio commented 6 days ago

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.