Why we need picker.time reference in translations?
I've got Uncaught TypeError: Cannot read property 'defaults' of undefined in my translation file.
I've looked there
jQuery.extend( jQuery.fn.pickatime.defaults, {
clear: 'удалить'
});
I don't need picktime in my application and don't want to include it?
Can we split that to additional translation file?
Same problem here. Another option would be to check if jQuery.fn.pickatime is defined and extend only if the object exists.
same problem here. Just updated today and I'm kinda lost about what exactly is 'pickatime'. Is it another library that's supposed to interact with pickadate?
Agh, that’s annoying.
As a temporary workaround, you can just stub it before including the translations files:
$.fn.pickatime = { defaults: {} }
This is annoying, and the amsul workaround looks good, but not good for a quality product. Could you please just approve the #744 ?
+1 plz approve the #744
Since the new version @types/[email protected] the workaround above does not work anymore. I get the following error: Type '{ defaults: {}; }' is not assignable to type 'Pickatime'. Type '{ defaults: {}; }' provides no match for the signature '(keyword: "picker"): TimePicker'. I am working with +-- @types/[email protected] | `-- @types/[email protected]
Does anyone has an idea how to adapt the workaround correctly?
It seems that this is still an issue ? Anyone an update ?
It seems that this is still an issue ? Anyone an update ?
A Pr is very welcome.
I am not proficient in Typings (regarding @types).