Apply localization only for selected parts

Hello there,

I'm using Syncfusion Schedule component in  my project. I'm referring the Globalization tutorial for "Schedule". I know that using locale property can change the localization. If we use "ar-SA" it will completely translate scheduler to Arabic language including Day(Monday, Tuesday,..), Date(1,2,3..etc), Time. I would like to know whether following things are possible or not?

When Arabic localization is activated, only translate Day(Monday, Tuesday, etc) into Arabic.
But keep the Date as 1, 2, 3 as it is in "en-US".
Keep the time as same as "en-Us" and Replace "AM" | "PM" with Arabic translation.

If this is possible could you please describe in a code snippet.

Thank You!

3 Replies 1 reply marked as answer

HB Hareesh Balasubramanian Syncfusion Team June 7, 2021 10:43 AM UTC

Hi Tharindu, 

Greetings from Syncfusion Support..! 

We have validated your query “need to apply Arabic localization for the Scheduler but date and time remains in English” and let you know that if you set Arabic culture it will translate the scheduler entirely to Arabic including date, time, numbers, etc.., If you want numbers to remain in English culture, you need to change the numbers.json file of Arabic culture imported. We have shared a sample with Arabic culture, once you installed NPM you can ensure the changes by replacing the numbers.json file in the path “node_modules\cldr-data\main\ar-AE\numbers.json” with the below file. 

 
 

Note: Kindly replace the Arabic number.json file as in en-US culture file like the below highlighted reference image, 

 

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

Regards, 
Hareesh 


Marked as answer

TH Tharindu June 7, 2021 11:21 AM UTC

Hi Hareesh,

Thank you for the answer. But the link https://www.syncfusion.com/downloads/support/directtrac/166109/ze/numbers1900103298 is un accessible for me.

Regards,
Tharindu


NR Nevitha Ravi Syncfusion Team June 8, 2021 05:27 AM UTC

Hi Tharindu, 

Sorry for the inconvenience caused. 

Please find the numbers.json file for your reference in the following link. 

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

Regards, 
Nevitha 


Loader.
Up arrow icon