TheCoder4eu / BootsFaces-OSP

BootsFaces - Open Source Project
Apache License 2.0
246 stars 102 forks source link

DateTimePicker locale not defined #672

Closed riccardogilli closed 5 years ago

riccardogilli commented 7 years ago

Hi, I'm trying to use the DateTimePicker component with the attribute "locale" set to "it", but a Javascript error is thrown. Uncaught ReferenceError: it is not defined at HTMLDocument.<anonymous> (editActivity.jsf:16) at i (jquery.js.jsf?ln=bsf:2) at Object.fireWith [as resolveWith] (jquery.js.jsf?ln=bsf:2) at Function.ready (jquery.js.jsf?ln=bsf:2) at HTMLDocument.J (jquery.js.jsf?ln=bsf:2)

This is the code I'm using on the latest version of Bootsfaces (1.0.2):

<b:dateTimePicker locale="it" placeholder="Data di inizio" format="DD/MM/YYYY" />

Thank you all, rickygil

stephanrauh commented 7 years ago

First analysis: the datetimepicker uses the locales of moment.js, and it seems that our moment.js copy doesn't include Italian.

geopossachs commented 5 years ago

in the current version 1.4.1 i could not reproduce the error

stephanrauh commented 5 years ago

Indeed. The error has gone away. I've added an example in Italian language to the showcase.