We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Localization for DatePicker is not working properly

Thread ID:





128066 Dec 29,2016 09:31 AM Jan 5,2017 12:02 AM JavaScript 4
Tags: ejDatePicker
Nebojsa Zecevic
Asked On December 29, 2016 09:31 AM


I'm trying to set localization for ejDatePicker and ejDateTimePicker but it seams that it doesn't work, not sure why.

Code is attached and set sample in playground: Sample (http://jsplayground.syncfusion.com/0sirg3zb)

In sample you will se DatePicker, DateTimePicker, Autocomplete and ColorPicker. Both Autocomplete and ColorPicker are working fine with localization, but DatePicker and DateTimePicker are not.

In syncfusion samples i can see that labels are set manually for date picker, but I don't wont to do that, it should be working automatically like for ColorPicker and Autocomplete.

Not sure if I'm missing something or there is a bug in control.

Attachment: EssentialStudioforJavaScriptDatePickerlocalization_f39c8abd.zip

Shameer Ali Baig Sulaiman Ali Baig [Syncfusion]
Replied On January 2, 2017 08:00 AM

Hi Nebojsa Zecevic, 
Thanks for contacting Syncfusion support. 
Query 1: 
We have analyzed your query and checked your sample. We suspect that the issue may be caused due to the incorrect reference links used in your code sample. We have modified those reference links in your sample to meet your expectation to set localization for DatePicker and DateTimePicker. 
For your convenience, we have attached the sample in the JS Playground link 
Query 2: 
Can you please let us know about what did you mentioned as ‘labels’ in your query? It will help us to clearly figure out your query and give you support.  
To know about EJ Globalize support, Please the following link 
Please revert us, if you have any further queries. 
Shameer Ali Baig S 

Nebojsa Zecevic
Replied On January 4, 2017 03:09 AM

Hi Shameer Ali Baig Sulaiman Ali Baig,

Thanks for your answer.

Question 1:
What was the problem with links i used? Older version or there is a bug in that version?

Question 2:
By labels i was referring on button text that should be localized, in some of your samples for JavaScript translated labels are set manually in code. Check this link http://js.syncfusion.com/demos/web/#!/bootstrap/datetimepicker/localization
You will see something like this:
var texts = {};
var placeholder;
else if (args.value == "vi-VN") {
  texts = { today: "hôm nay", timeNow: "Bây giờ là", done: "được rồi", timeTitle: "thời gian" };
  placeholder = "Chọn ngày giờ";
dateTimeobject.setModel({ "locale": args.value, buttonText: texts, watermarkText: placeholder });

Kind Regards,
Nebojsa Zecevic

Nebojsa Zecevic
Replied On January 4, 2017 03:42 AM

Hi Shameer Ali Baig Sulaiman Ali Baig,

I got it working in my application. It was link problem after all.

Thanks for your support!

All best,
Nebojsa Zecevic

Shameer Ali Baig Sulaiman Ali Baig [Syncfusion]
Replied On January 5, 2017 12:02 AM

Hi Nebojsa, 
Thanks for your update. 
Please, let us know if you need further assistance. 
Shameer Ali Baig S 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.