Skip to content

Latest commit

 

History

History
64 lines (41 loc) · 4.13 KB

File metadata and controls

64 lines (41 loc) · 4.13 KB

BI Dashboard for ASP.NET Core - Localization

The example shows how to localize an ASP.NET Core Dashboard application:

  • 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 predefined satellite assemblies to localize the ASP.NET Core Dashboard control for the German market. Each project uses a different approach to format dates, numbers, and currencies.

Intl

Files to Review:

The DashboardLocalizationCore project uses Intl to apply culture-specific formatting. The Web Dashboard control supports and uses this API out of the box. Call the DevExpress.localization.locale method and pass the locale as a parameter: DevExpress.localization.locale('de');.

Globalize

Files to Review:

The DashboardLocalizationManualCore project shows how to use Globalize instead of Intl.

If you add Globalize npm packages and reference these scripts in the ASP.NET Core application, the ASP.NET Core Dashboard control will use Globalize to format dates, numbers, and currencies. The project also shows how to apply custom formatting for numbers and dates.

Documentation

More Examples

Does this example address your development requirements/objectives?

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