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