- Home
- Forum
- React - EJ 2
- Globalization
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.
SIGN IN To post a reply.
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.
Please find the sample here: https://www.syncfusion.com/downloads/support/forum/148310/ze/quickstart_1483101030058590
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.
Regards.
SP
Sureshkumar P
Syncfusion Team
October 21, 2019 07:36 AM UTC
Hi Jose,
Most welcome.
Regards,
Sureshkumar P
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
JA Jose Antonio
- Oct 15, 2019 08:40 AM UTC
- Oct 21, 2019 07:36 AM UTC