Need Help with Date Picker

I am using a DatePicker on my page, but I need to display the days and months labels in Spanish, ie: Moday = Lunes, January = Enero. How do I do that?
Thank you

1 Like

Can´t be done. I had an alternative working, but it code-broke again.

uhhhh Thank you Giri, I guess that wix will need to do something here, or I will not be able to use it.
what was the alternative work you have?

An alternative date picker based on flatpickr. It uses the html-component to show a flatpickr calendar (in any language) and talks back to Wix , but the html-component is so heavily under development, that the thing broke twice now.
I have the same problem as you have: my Spanish users now have (on Chrome) automatic translation “on”, but it´s a nightmare. The “We” in Wednesday is translated as “Nosotros” inside the date picker.

Thank you! I will try “flatpickr” to see how it works, if something come across I will let you know.

I can send you my code, so you don´t have to do all the development yourself. The flatpickr parts works, it´s just the wix html-component that keeps changing and thus breaking code. You will have the same problems, there is no other solution than to use the html-component.

go ahead, walpec@gmail.com

OK, I will. Give me a day, I will try to add comments so you understand what is going on. How good are you in Wix Code and jQuery?

Thank you take your time. I think I’m preaty good at Wix Code and JQuery. Majority of my pages are code base.

Thanks. That helps, so I can keep comments to a minimum. I will try to send it ASAP, OK?

Perfect, Thank you!

Hey Giri,

What do see that changed in HtmlComponent? Not aware of any changes for quite a while.

Yisrael

Yisrael, it´s about the moment of loading. At first, html-component was loaded after $w was, but you were not sure if it was ALREADY loaded. So I developed that “heart beat” trick which, according to you, was good enough for the Nobel Prize, remember?
Then the loading moment suddenly changed. My datepickr stopped working overnight. It took me a week to find out that now, the component was consistenly loaded BEFORE $w, so sending a heart beat message was pointless, because $w didn´t listen yet. So I changed the datepickr code. Some of you saw it and urged me to put it up in the “Show off your work” section. Glad I didn´t, because last week I looked at it and it was broken again; no calendar popping up, just an empty window. I did not change a single byte of that code, so if I had to guess, the loading moment has changed again.

It isn’t a change to the HtmlComponent, rather it’s probably network/system stuff causing things to behave differently. You need to keep track of what is ready first, the page or the HtmlComponent.

OK, if you say so, I´ll take your word for it. You have always been an excellent help and I do not doubt your word. I will have a look at it again before I send it to walpec, above. Somebody else from Wix (do not remember who, will have to look it up), already gave such a double trick tip earlier, have not had the time to look at it, but now I will. Thanks, Yisrael, will have a beer to your good health in 15 minutes.

walpec, I have made some changes. Could you check out https://girizano.wixsite.com/vila25a/testpage2 and see if it works for you?

Ok thank you Giri, I will try it today.

Hello Yisrael, do you think that it is on the works to have a multilanguage version of the date picker?

Hey Giri, that is what I want, do you have the code for it? Can I use it?

@Girii,
You “do not doubt my word”? Wow - big mistake. Even I don’t trust myself. – You must’ve had the beer, I feel better already. I’ll feel even better when I’ve had one myself. :beers:

@walpec,
This is on the list of things to do. No time frame whatsoever. To help push it forward, post a Feature Request .