The example shows how to localize the Dashboard control in JavaScript applications:
- Translate UI element captions to a different language: dialog boxes, buttons, menu items, error messages, etc.
- Format numbers, dates, and currencies according to specific culture settings.
The example contains two projects that show how to use component-specific JSON files to localize the JavaScript Dashboard control for the German market. Each project uses a different approach to format dates, numbers, and currencies.
Files to review:
The DashboardLocalizationHTMLJS project uses Intl to apply culture-specific formatting. The Web Dashboard control supports and uses this API out of the box.
Since the Web Dashboard exports data on the server side, you need to localize the server to complete the localization process. Specify application level culture information in the Web.config file.
Files to review:
The DashboardLocalizationManualHTMLJS project shows how to use Globalize instead of Intl.
If you reference Globalize scripts on the client, the JavaScript Dashboard control will use Globalize to format dates, numbers, and currencies. The project also shows how to apply custom formatting for numbers and dates.
Since the Web Dashboard exports data on the server side, you need to localize the server to complete the localization process. Specify application level culture information in the Web.config file.
(you will be redirected to DevExpress.com to submit your response)