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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

regional globalization project

Thread ID:





140828 Nov 8,2018 07:54 PM UTC Nov 12,2018 08:53 AM UTC ASP.NET MVC - EJ 2 3
Tags: General
Asked On November 8, 2018 07:54 PM UTC


First, thank you for offering some wonderful tools, for what little I have been using are very good.

I have a query, I'm working on an ASP.NET MVC project and I need to know if there is any way that my entire project is left with the globalization of my country. (es-CO)

Reviewing the documentation, I see that for each component there is a configuration.

- another doubt, I'm sorry for being something new, in the documentation asks to be "Install the CLDR-Data", how do I add it to my mvc project ?.

Thank you very much for your help.


Jesus Arockia Sankaran S [Syncfusion]
Replied On November 9, 2018 01:36 PM UTC

Hi Norberto,  

Thanks for contacting Syncfusion products.  

We have analyzed your query and created sample ASP.Net MVC project for detailed reference. We have listed the information to be followed below along with sample download link.  

For Internationalization, you need to include cldr files into your application. You need to download cldr-data globally in any location by using below command. 
npm install cldr-data 
After installing cldr-data, you can find cldr-data for all locale in this location(node_modules->cldr-data->main). You need to copy the required(or all) locale cldr-data and paste into your application folder(Scripts->cldr-data->main->paste copied cldr files). 
You need to include cldr-data into your application and refer file location in index.cshtml file like below code example. Please find the below code example for your reference. 

[code example] [index.cshtml] 
<div class="col-lg-8 control-section"> 
    <div id="wrapper"> 
        <div id="calender-control"> 
            <span id="date_label"> Selected Value: </span> 
<div id="propertySection" class="col-lg-4 property-section"> 
    <div class="radio-control" id="property" title="Select a Locale"> 
        <div class="row"> 
        <div class="row"> 
        <div class="row"> 
   function startDate(args) { 
        /*Displays selected date in the label*/ 
        (document.getElementById('date_label')).textContent = 'Selected Value: ' + args.value.toLocaleDateString(); 
    function onLocaleChange(args) { 
        /*Apply selected format to the component*/ 
        var culture = args.value; 
        calendarObject.locale = culture; 
       calendarObject.enableRtl = calendarObject.locale === 'ar' ? true : false; 
        if (culture !== 'en') { 
        globalize = new ej.base.Internationalization(calendarObject.locale); 
        if (calendarObject.value) { 
            var dateString = globalize.formatDate(calendarObject.value); 
            (document.getElementById('date_label')).textContent = 'Selected Value: ' + dateString; 
    document.addEventListener('DOMContentLoaded', function () { 
        calendarObject = document.getElementById('calendar').ej2_instances[0]; 
        var L10n = ej.base.L10n; 
            "de": { 
                "calendar": { 
                    "today": "heute" 
            "en": { 
                "calendar": { 
                    "today": "Today" 
            "ar": { 
                "calendar": { 
                    "today": "اليوم" 
        calendarObject.locale = 'de'; 
    function loadCultureFiles(name) { 
        var files = ['ca-gregorian.json', 'numbers.json', 'timeZoneNames.json']; 
        if (name === 'ar') { 
        var loader = ej.base.loadCldr; 
        var loadCulture = function (prop) { 
            var val, ajax; 
            if (name === 'ar' && prop === files.length - 1) { 
                ajax = new ej.base.Ajax(location.origin + location.pathname + '/../../scripts/cldr-data/supplemental/' + files[prop], 'GET', false); 
            } else { 
                ajax = new ej.base.Ajax(location.origin + location.pathname + '/../../scripts/cldr-data/main/' + name + '/' + files[prop], 'GET', false); 
            ajax.onSuccess = function (value) { 
                val = value; 
        for (var prop = 0; prop < files.length; prop++) { 

Also, please get back to us if you require any further assistance on this.  

Jesus Arockia Sankaran S 

Replied On November 9, 2018 08:03 PM UTC

Hello Jesus Arockia Sankaran S

Thank you very much, with your example, guide a lot, and my problem is solved.

You're the best.

thank you

Saranya Murugasamy [Syncfusion]
Replied On November 12, 2018 08:53 AM UTC

Hi Norberto, 
We are happy that the your problem has been solved.  Please get back to us if you need any further assistance.  

Saranya M 


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