Reputation: 47
I am developing angular web application and used ejs-datepicker in application for date selection, Now as a change I want regional language datepicker which as a customer need. So is this possible with ejs-datepicker.
Your answer is valuable to me.
Upvotes: 1
Views: 1197
Reputation: 26430
I think you are looking for this: https://ej2.syncfusion.com/documentation/datepicker/globalization/
It's not very straightforward. You need to Install two packages, write a bunch of code all around the place and load the language json like this
//Load the loadCldr from ej2-base
import { loadCldr } from '@syncfusion/ej2-base';
declare var require: any;
loadCldr(
require('cldr-data/main/de/ca-gregorian.json'),
require('cldr-data/main/de/numbers.json'),
require('cldr-data/main/de/timeZoneNames.json'),
require('cldr-data/supplemental/weekdata.json') // To load the culture based first day of week
);
Upvotes: 1