Globalization Support

28 Jun 20172 minutes to read

Globalization is language support based on the culture in Textboxes. You can achieve the Globalization using “locale” property in PercentageTextBox .

The PercentageTextBox widget provides multi-language support using globalization. You can customize the PercentageTextBox with your own language style by using this feature. You can change the globalization by using the locale property. The default value for locale property is en-US in PercentageTextBox control.

More than 350 culture specific files are available to localize the value. To know more about EJ globalize support, please refer the below link
http://help.syncfusion.com/js/localization

NOTE

Seven culture-specific script files are available in the below specified location. For all other culture files, please download from the GitHub location.

'(installed location)\Syncfusion\Essential Studio\24.2.3\JavaScript\assets\scripts\i18n'
For example, If you have installed the Essential Studio package within C:\Program Files (x86), then navigate to the below location, C:\Program Files (x86)\Syncfusion\Essential Studio\24.2.3\JavaScript\assets\scripts\i18n

Refer the below German culture file in head section of HTML page after the reference of ej.web.all.min.js file.

  • JAVASCRIPT
  • <script src="http://cdn.syncfusion.com/24.2.3/js/i18n/ej.culture.de-DE.min.js"></script>

    You can dynamically change the language based on their culture.

    Configure Globalization

    The following example describes the way to use Globalization for PercentageTextBox widget.

  • HTML
  • <table cellpadding="10">
        <tbody>
            <tr>
                <td>
                    <label for="percent">Percent</label>
                </td>
                <td>
                     <input id="percent" type="text" ej-percentagetextbox e-value="21234" e-decimalplaces="3" e-locale="de-DE"/>
                </td>
            </tr>
        </tbody>
    </table>

    The output for PercentageTextBox with Globalization.

    PercentageTextBox with de-DE locale

    PercentageTextBox with en-US locale