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

Question about the language pack related to the localization

Thread ID:

Created:

Updated:

Platform:

Replies:

121675 Jan 15,2016 01:45 AM Jan 18,2016 10:47 AM JavaScript 1
loading
Tags: General
Myungjin Cho
Asked On January 15, 2016 01:45 AM

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. 

Aruna Selvaraj [Syncfusion]
Replied On January 18, 2016 10:47 AM

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


CONFIRMATION

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.

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.

;