Sample project for basic multi-cultural web application, built with ASP.NET Core 2.1.
I developed a new nuget package named ExpressLocalization to simplify localization of Asp.Net Core web apps to one step, see samples below:
- Repository : https://github.com/LazZiya/ExpressLocalization
- Sample project (DotNet Core 2.2): https://github.com/LazZiya/ExpressLocalizationSample
- Sample project (DotNet Core 3.0): https://github.com/LazZiya/ExpressLocalizationSampleCore3
- Project website : http://ziyad.info/en/articles/33-Express_Localization
if you still need to go through localization steps manually continue reading this page :)
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
- Basic knowledge of web development principals
- Visual Studio 2017
- .NET Core 2.1 SDK
- ResX Manager (optional)
- Arabic
- Arabic - Syria
- English
- Hindi
- Persian
- Spanish
- Turkish
- Edit /Utilities/LocalizationExtension.cs --> add new CultureInfo("xx"); to cultures list
- Create related resource files:
- /Resources/ViewResource.xx.resx
- Visual Studio 2017 - Web development env.
- .NET Core 2.1 SDK
- ResX Manager (optional) - For managing localization resource files easily.
- Globalize - For client side validation of numbers and dates
- jquery-validation-globalize - Enabling simple internationalized validation
- cldr-json data - Localized data for all cultures, required for client side valdiation
- Developing Multicultural Web Application Using ASP.NET Core 2.1
- Creating Startup Project
- Configuring Culture Route Model
- Localizing Request
- Creating Language Dropdown Navigation
- Localizing Views
- Localizing Form Labels
- Localizing ValidationAttribute Error Messages
- Localizing ModelBinding Error Messages
- Configuring Client Side Validation
- Ziya Mollamahmut - Ziyad.info
This project is licensed under the MIT License - see the LICENSE.md file for details