Skip to content

The example shows how to localize the Dashboard control in JavaScript applications

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/javascript-dashboard-localization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BI Dashboard for JavaScript Applications - Localization

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.

Example Structure

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.

Intl

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.

Globalize

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.

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)