Internationalization library

Hi,

We use a microsoft IIS server not a linux server

How to install and use Internationalization library package in our environment?

Thanks



12 Replies 1 reply marked as answer

NR Nevitha Ravi Syncfusion Team November 27, 2020 05:07 AM UTC

Dear customer,  

Greetings from Syncfusion Support. 

You can install and use internationalization packages using CLDR please refer to the following UG. 

 Please get back to us if you need any further assistance. 

Regards, 
Nevitha 



GI Gilles November 27, 2020 11:47 AM UTC

npm install cldr-data
Not possible to use in microsoft IIS server environment !

Solution ?


NR Nevitha Ravi Syncfusion Team November 30, 2020 12:06 PM UTC

Hi Gilles, 
 
Thanks for your update. 
 
We have prepared a sample for localization applying French culture in our scheduler, which can be viewed from the following link.  
 
Can  you please share the following details to proceed further on this? 
  • Whether you are facing any issue in hosting your sample
  • Is localization applied in your local sample?
  • Whether you are trying to install CLDR and face any issue?
  • Video/image reference depicting the issue
  • Sample or code snippet you have tried.
 
Regards, 
Nevitha? 



GI Gilles December 3, 2020 05:39 PM UTC

I don't use TypeScript .ts but javascript .js
Could you translate your sample un js, please


NR Nevitha Ravi Syncfusion Team December 4, 2020 10:27 AM UTC

Hi Gillies, 

Thanks for your update. 

We have prepared a sample in Javascript for you reference which can be viewed from the following link. 

Please get back to us with the requested details if you face any issue. 

Regards, 
Nevitha 



GI Gilles December 6, 2020 05:17 PM UTC

Hi

require don't work in javascript pure environment
Another way ?

ej.base.loadCldr(
  require("./numberingSystems.json"),
  require("./ca-gregorian.json"),
  require("./numbers.json"),
  require("./timeZoneNames.json")
);


GI Gilles December 6, 2020 05:27 PM UTC

My source project

Attachment: scheduler_40509050.zip


HB Hareesh Balasubramanian Syncfusion Team December 7, 2020 06:57 AM UTC

Hi Gilles, 

Thanks for the update. 

We have prepared a globalization sample based on your shared query without using ‘require’ and used Ajax to load culture files which can be downloaded from the following link. 



Kindly try the above solution and get back to us if you need any further assistance. 

Regards, 
Hareesh 


Marked as answer

GI Gilles December 8, 2020 10:41 AM UTC

Sorry, but if i decompress the archive and open to index.html, nothing is displayed.

Couldn't we load different configuration files depending on the chosen language?

As we are dynamically building the html page, it is easy for us to change the name of the called files.
And choose

script src="ej2.EN.min.js" type="text/javascript" // for english version
script src="ej2.FR.min.js" type="text/javascript" //for french version

Would you like a solution in this direction ?



HB Hareesh Balasubramanian Syncfusion Team December 8, 2020 12:53 PM UTC

Hi Gilles, 

Thanks for the update. 

We have validated your shared query “Sorry, but if i decompress the archive and open to index.html, nothing is displayed” at our end and suspect that you have run the project without installing the gulp files which could be the reason for the reported problem, so kindly follow the below steps to run our previously updated sample. 

  • npm install
  • gulp serve

As we are dynamically building the html page, it is easy for us to change the name of the called files” 

No, we can’t load the culture files like a script files and we need to load it from the Cldr-data package only and we have referred it using the Ajax for rendering the cultures for the Scheduler. 

Kindly try the above solution and if the issue still persists at your end kindly share the below details to serve you better?   
   
  • Replicate the issue in the above sample and share detailed steps of issue like image/ video demo
  • Share the issue replicating sample (if possible)

We will happy to assist you. 

Regards, 
Hareesh 



GI Gilles December 8, 2020 01:48 PM UTC

My web application server environment is IIS server (Microsoft Internet information server)
Not possible to install and use Gulp serve !?

Would it possible to have a default version of the scheduler in french by default?



NR Nevitha Ravi Syncfusion Team December 9, 2020 11:57 AM UTC

Hi Gilles, 

Thanks for your update. 

We are not clear about your requirement and let you know that we can not  set French as scheduler default culture without importing required CLDR files. Can you please share the following details to check the problem at our end? 
  • Whether you have tried to host your JS application
  • Your application structure.
  • Share the application if possible.

Regards, 
Nevitha 


Loader.
Up arrow icon