JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › General Discussions › Date & Time Pickers › Date picker error for nl_be
I use the smat-elements date picher but when I try to set as language nl_BE (Dutch Belgium) it goes into error.
jquery-min.js?v=3.6.0:2 jQuery.Deferred exception: Invalid language tag: nl_be RangeError: Invalid language tag: nl_be at Date.toLocaleString (<anonymous>) at Function.getLocalizedNames (http://localhost:8080/web-rubik/rubikscripts/smart-components/smart.elements.js?v=20.0.0:9:25113) at BaseElement._getLocalizedNames (http://localhost:8080/web-rubik/rubikscripts/smart-components/smart.elements.js?v=20.0.0:78:28885) at BaseElement.propertyChangedHandler (http://localhost:8080/web-rubik/rubikscripts/smart-components/smart.elements.js?v=20.0.0:78:17396) at t.updateProperty (http://localhost:8080/web-rubik/rubikscripts/smart-components/smart.elements.js?v=20.0.0:6:76010) at BaseElement.set [as locale] (http://localhost:8080/web-rubik/rubikscripts/smart-components/smart.elements.js?v=20.0.0:6:77144) at datepickerInit (http://localhost:8080/web-rubik/rubikscripts/i18n/datepicker.js?v=4402.0:8:28) at HTMLDocument.<anonymous> (http://localhost:8080/web-rubik/ConfiguratoreWeb:57:5)
How can I solve ?
tks at e (http://localhost:8080/web-rubik/rubikscripts/jquery-min.js?v=3.6.0:2:30038) at t (http://localhost:8080/web-rubik/rubikscripts/jquery-min.js?v=3.6.0:2:30340) undefined
Hi,
Such language tag is indeed invalid and the error points it out. You can observe that the error is from the native JS Date.toLocaleString which means that nl_BE is invalid String for a Locale.
Best regards, Markov
Smart UI Team https://www.htmlelements.com/