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.
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.
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');
.
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.
- ASP.NET MVC Dashboard Control - Localization
- ASP.NET Web Forms Dashboard Control - Localization
- Dashboard for Angular - Localization
- Dashboard for React - Localization
- Dashboard for Vue - Localization
- Dashboard Control for JavaScript Applications - Localization
(you will be redirected to DevExpress.com to submit your response)