How to Include Languages Other than English in ExtJS ?
How to Include Languages Other than English in ExtJS ?
- We can specify Language in which we wish to display our messages.
- By default Ext objects are displayed in English.
English Language is By default included In -
ext-all.js
- If we want to Localize Ext Library by adding Non English Language then we can include required JS Files from “locale“.
Library Inclusion will be like this -
<linkrel="stylesheet"type="text/css" href="lib/extjs/resources/css/ext-all.css"/> <script src="lib/extjs/adapter/ext/ext-base.js"></script> <script src="lib/extjs/ext-all-debug.js"></script> <script src="lib/extjs/build/locale/ext-lang-fr.js"></script>
We have included following file in order to use French Language to be rendered on the Front End / UI Side.
<script src="lib/extjs/build/locale/ext-lang-fr.js"></script>
Explanation :
Elements that are have been localized are —
- Calendar text
- Error messages
- Tool tip information messages
- Paging info
- Loading indicators.
Following File will localize existing Messages rendered on UI to Locale Language
ext-lang-XX.js
*XX : Locale Language