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. Image for the cookie policy date
close icon

Globalization

Hi,

Could i get an example of globalization using the daterangepicker control? I always get error

Uncaught TypeError: Cannot convert undefined or null to object
    at Function.keys ()
    at DateRangePickerComponent.CalendarBase.getCultureValues (calendar.js:362)
    at DateRangePickerComponent.CalendarBase.createContentHeader (calendar.js:405)
    at DateRangePickerComponent.CalendarBase.createContent (calendar.js:343)
    at DateRangePickerComponent.DateRangePicker.renderCalendar (daterangepicker.js:2689)
    at DateRangePickerComponent.DateRangePicker.createCalendar (daterangepicker.js:2808)
    at DateRangePickerComponent.DateRangePicker.createControl (daterangepicker.js:3059)
    at DateRangePickerComponent.DateRangePicker.renderControl (daterangepicker.js:930)
    at DateRangePickerComponent.DateRangePicker.createPopup (daterangepicker.js:925)
    at DateRangePickerComponent.DateRangePicker.show (daterangepicker.js:4515)
    at DateRangePickerComponent.DateRangePicker.rangeIconHandler (daterangepicker.js:753)
CalendarBase.getCultureValues @ calendar.js:362
CalendarBase.createContentHeader @ calendar.js:405
CalendarBase.createContent @ calendar.js:343
DateRangePicker.renderCalendar @ daterangepicker.js:2689
DateRangePicker.createCalendar @ daterangepicker.js:2808
DateRangePicker.createControl @ daterangepicker.js:3059
DateRangePicker.renderControl @ daterangepicker.js:930
DateRangePicker.createPopup @ daterangepicker.js:925
DateRangePicker.show @ daterangepicker.js:4515
DateRangePicker.rangeIconHandler @ daterangepicker.js:753

using the loadCldr funcion.

Thanks in advance.

3 Replies

SP Sureshkumar P Syncfusion Team October 16, 2019 11:11 AM UTC

Hi Jose, 
  
Greetings from Syncfusion support. 
  
We have checked your query with shared error details, we suspect that localize files are not loaded correctly in your application. We have prepared the sample based on your requirement using loadCldr method for localize the DateRangePicker with "es" culture. 
 To know more about globalization. Please refer the below documentation link: https://ej2.syncfusion.com/react/documentation/daterangepicker/globalization/  
  
Regadrs, 
Sureshkumar P 



JA Jose Antonio October 19, 2019 09:23 AM UTC

All right.

Thanks a lot.

Regards.


SP Sureshkumar P Syncfusion Team October 21, 2019 07:36 AM UTC

Hi Jose, 
 
Most welcome. 
 
Regards, 
Sureshkumar P 


Loader.
Live Chat Icon For mobile
Up arrow icon