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

Question about the language pack related to the localization

Hello sir, 

currently my company is using your javascript product, and the developers are wondering 
whether there is a Korean installed in the language pack. 
If there is none, would it be possible to include it by ourselves? 

Thank you. 

1 Reply

AS Aruna Selvaraj Syncfusion Team January 18, 2016 03:47 PM UTC

Hi Maverick,


Thanks for contacting Syncfusion support.

To use your own localization for our javascript controls for specific culture say "ko-KR" which is not predefined or else you want to change. Follow the given procedures.

* Choose the control for which you want to define custom localization
* select the default locale object for the control you want to change in the installed directory
* Based on the default locale object structure modify the culture name and value of the desired property.
* Refer the custom locale object in your source file
* Set the culture to the control

If you want to define custom locale text for the controls. Find and copy the "en-US" locale object in the {installed location}\assets\scripts\localetexts\ej.localetexts.en-US.min.js

Then change the culture "en-US" to any culture you want say "ko-KR". And change the values of all the key to your desired language.

You can save this object in a separate file and refer this file after the javascript control file or can embed within the same file in the script tag after the reference of the control file.

<script src = "ej.web.all.min.js" ></script>
<script src = "myLocaleObject.js" ></script>

To see the changes in your javascript application you have to set the locale option of the control to the culture you had created say "ko-KR".

$('#datePicker').ejDatePicker({locale: "ko-KR"});
$('#grid').ejGrid({locale: "ko-KR"});

In this way, you can set the culture of all the controls used in your javascript application.

Please let us know if you have any queries.

Regards,
Aruna S


Loader.
Live Chat Icon For mobile
Up arrow icon