Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to localize DevExtreme widgets using Globalize 1.X when the Knockout approach is used

$
0
0

To localize DevExtreme widgets, do the following:


- Link required dictionaries as described in the following help topic:
Link Dictionaries

Note that the order of references is important.


- Reference the DevExtreme localization script:
Use Predefined Dictionaries 

- Initialize your application after setting the locale:

[JavaScript]
$.when(...}).then( Globalize.load).then(function(){ Globalize.locale('de');// Initialize your application here ko.applyBindings(viewModel, document.getElementById("demo"));});

Important: Call the ko.applyBindings method only after setting a page locale.

For a more detailed description, refer to the following help topic:


Localization 

See also:
Extend Predefined Dictionaries
Globalize.formatMessage

Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>