Socket
Socket
Sign inDemoInstall

ej2-locale

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ej2-locale

localized text for all Essential JS 2 Component in various languages


Version published
Weekly downloads
8
increased by100%
Maintainers
1
Install size
1.56 MB
Created
Weekly downloads
 

Readme

Source

ej2-locale

Locale translations for Essential JS 2 components in multiple languages.

Currently supported localization languages

Culture-CodeLanguage
ar-AEArabic - United Arab Emirates
csCzech - Czech Republic
daDanish - Denmark
deGerman - Germany
en-USEnglish - United States
esSpanish - Spain
faFarsi - Iran
fiFinnish - Finland
frFrench - France
heHebrew - Israel
hrCroatian - Croatia
huHungarian - Hungary
idIndonesian
itItalian - Italy
jaJapanese - Japan
koKorean - Korea
msMalay - Malaysia
nbNorwegian (Bokmål) - Norway
nlDutch - The Netherlands
plPolish - Poland
ptPortuguese - Portugal
roRomanian - Romania
ruRussian - Russia
skSlovak - Slovakia
svSwedish - Sweden
trTurkish - Turkey
viVietnamese - Vietnam
zhChinese - 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();

Keywords

FAQs

Last updated on 21 May 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc