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

Internationalization of gantt chart

Hello, 

my scope is to traslate the gantt chart in italian. 

I've already implemented the italian languages for the columns/filter ecc with:

L10n.load({
  'it-IT': {
    gantt: {
      id: 'Id',
      name: 'Nome',
      startDate: 'Data Partenza',
      duration: 'Durata',
      progress: 'Progresso',
      emptyRecord: 'Nessun task presente',
      dependency: 'Dipendenza',
      notes: 'Note',
      baselineStartDate: 'Data inizio base',
      baselineEndDate: 'Data fine base',

 ecc..

Now I want to translate the dates in the chart. 

Following this example: 

https://ej2.syncfusion.com/angular/documentation/gantt/global-local#internationalization

I cannot understand and find the 2 file to add to:

loadCldr(
            './numbers.json',
            './ca-gregorian.json',
        );

Where can I found them? 

Do I need to download them and include them in the project? And in which json order the numbers and ca-gregorian must be? 

In the website there isn't an example of those 2 file and from this page (https://ej2.syncfusion.com/angular/documentation/common/internationalization ) I cannot understand it


Thanks


Matteo



1 Reply

UA Udhayakumar Anand Syncfusion Team May 8, 2023 01:08 PM UTC

Hi Matteo


Thank you for reaching out to us with your query. We have reviewed your request, and we understand that you are looking to translate the dates in the Gantt chart to Italian.


To add the necessary files for internationalization, you can download the "cldr-data" package by running the following command in the terminal: npm install cldr-data


Once you have installed the package, you will find the required files inside cldr-data based on your language. In that package you have find the "numbers.json" and "ca-gregorian.json" files required to translate dates.


You can find more information regarding this from the UG link given below

UG link : https://ej2.syncfusion.com/angular/documentation/common/internationalization#installing-cldr-data


We hope this information has answered your query, please contact us if you have any questions


Regards,

Udhayakumar


Loader.
Live Chat Icon For mobile
Up arrow icon