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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Globalization

Thread ID:

Created:

Updated:

Platform:

Replies:

148310 Oct 15,2019 08:40 AM UTC Oct 21,2019 07:36 AM UTC React - EJ 2 3
loading
Tags: DateRangePicker
Jose Antonio
Asked On October 15, 2019 12:22 PM UTC

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.

Sureshkumar P [Syncfusion]
Replied On 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 


Jose Antonio
Replied On October 19, 2019 09:23 AM UTC

All right.

Thanks a lot.

Regards.

Sureshkumar P [Syncfusion]
Replied On October 21, 2019 07:36 AM UTC

Hi Jose, 
 
Most welcome. 
 
Regards, 
Sureshkumar P 


CONFIRMATION

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon