Date picker does not work when i add culture

hi,
I want to add Turkish language to my Vue project, but the date picker also gives the following error

the codes I use

import { loadCldr, setCulture} from '@syncfusion/ej2-base';
import * as numberingSystems from 'cldr-data/supplemental/numberingSystems.json';
import * as gregorian from 'cldr-data/main/tr/ca-gregorian.json';
import * as numbers from 'cldr-data/main/tr/numbers.json';
import * as timeZoneNames from 'cldr-data/main/tr/timeZoneNames.json';

loadCldr(numberingSystems, gregorian, numbers, timeZoneNames);

setCulture('tr');


When I click the date picker, the console gives this error

where am i doing wrong?

3 Replies 1 reply marked as answer

SP Sureshkumar P Syncfusion Team November 3, 2020 02:52 PM UTC

Hi Jovia, 
 
Greetings from Syncfusion support. 
 
The reported issue is occurred due to CLDR-data files are not loaded properly in your application. So, we suggest you to ensure that whether then CLDR-data files for the loaded culture is referred correctly in your application. We have prepared the sample and attached it below. 
 
 
To know more about this, please find the below documentation link. 
 
 
Regards, 
Sureshkumar P. 


Marked as answer

JO Jovia November 4, 2020 06:24 PM UTC

thanks a lot, the sample project you sent solved my problem :)


SP Sureshkumar P Syncfusion Team November 5, 2020 06:34 AM UTC

Hi Jovia, 
 
Thanks for the update. 
 
Regards, 
Sureshkumar P 


Loader.
Up arrow icon