extjs in arabic - ExtJS Form Multi-Language Internationalization example

ExtJS Form Multi-Language Internationalization example

Posted on

extjs in arabic - ExtJS Form Multi-Language Internationalization example

ExtJS is a JavaScript MVC framework used to create Rich UI components on Client side. We usually develop application in English language but application used by across the country need to support local country languages. Supporting Native country languages will help used in interact with system in better ways.

Today i am going to demonstrate you How we can create a ExtJS Form with different languages. I will use English (default), Arabic, Chinese and Hindi language. We will create a simple Login form with two textfiels that user can change its fieldLabel by just clicking on languages button given below the form.

To enable textfield label display different languages, i create an object with each Textfield that has its label in different language. When user click on any language button, changeLabel function will execute and dynamically set the fieldLabel to that language using Textfield’s setFieldLabel() method.

Output will look similar to as following screenshot…..

ext js multi language form - ExtJS Form Multi-Language Internationalization example

Source techzoo.org