This package has been deprecated

Author message:

This package is no longer supported. It is now moved to [@syncfusion/ej2-locale](https://www.npmjs.com/package/@syncfusion/ej2-locale).

ej2-locale

17.1.48 • Public • Published

ej2-locale

Locale translations for Essential JS 2 components in multiple languages.

Currently supported localization languages

Culture-Code Language
ar-AE Arabic - United Arab Emirates
cs Czech - Czech Republic
da Danish - Denmark
de German - Germany
en-US English - United States
es Spanish - Spain
fa Farsi - Iran
fi Finnish - Finland
fr French - France
he Hebrew - Israel
hr Croatian - Croatia
hu Hungarian - Hungary
id Indonesian
it Italian - Italy
ja Japanese - Japan
ko Korean - Korea
ms Malay - Malaysia
nb Norwegian (Bokmål) - Norway
nl Dutch - The Netherlands
pl Polish - Poland
pt Portuguese - Portugal
ro Romanian - Romania
ru Russian - Russia
sk Slovak - Slovakia
sv Swedish - Sweden
tr Turkish - Turkey
vi Vietnamese - Vietnam
zh Chinese - China

How To load locale text for Essential JS 2 components

To load translation object in Essential JS 2 components, you can load locale object in L10.load function from ej.base. For example, In the below code snippet we have loaded the locale file for Arabic culture.

ej.base.setCulture('ar-AE');
var ajax = new ej.base.Ajax('/src/ar-AE.json', 'GET', true);
ajax.onSuccess = function (value) {
        //Assigning locale text value for Essential JS 2 components
        ej.base.L10n.load(value);
    };
ajax.send();

Package Sidebar

Install

npm i ej2-locale

Weekly Downloads

2

Version

17.1.48

License

SEE LICENSE IN license

Unpacked Size

1.64 MB

Total Files

32

Last publish

Collaborators

  • essentialjs2