-2

I have found some useful articles for creating multilingual and multicultural applications in ASP.NET Core like

and a github project providing an example for implementation

The approach I decided to follow is the third one on the above list since I wanted to give to my users the option to select the culture even though I had some issues with tha Data Annotation Localization

However I thought I should ask if anyone has any more interesting approaches and article resources to share before I started my first ASP.NET Core MVC application.

Anastasios Selmani
  • 3,579
  • 3
  • 32
  • 48

2 Answers2

2

I have wrote some articles regarding localization in ASP.NET Core 2.1, it addresses common localization issues like localizing data annotations and client side validation:

http://www.ziyad.info/en/articles/10-Developing_Multicultural_Web_Application

and provided a github project as well, additionally you can check this article as well for localizing identity error messages:

http://www.ziyad.info/en/articles/20-Localizing_Identity_Error_Messages

LazZiya
  • 5,286
  • 2
  • 24
  • 37
  • Not working in asp.net 2.0, It creates routes like http://localhost:54794/?culture=de but still does not display correct culture name etc – Jitendra Pancholi Apr 17 '19 at 11:50
  • I cannot see any controller in your project, i downloaded from https://github.com/LazZiya/MyTrips – Jitendra Pancholi Apr 17 '19 at 12:21
  • @JitendraPancholi the tutorial as mentioned in the answer is for dotnet core 2.1, it has no controllers because it is based on razor pages not mvc.you may need to do some modifications in order to adopt to mvc pattern – LazZiya Apr 17 '19 at 12:24
  • btw, the official support period for dot net core 2.0 is already finished, it is better to switch to a newer version https://dotnet.microsoft.com/platform/support/policy/dotnet-core – LazZiya Apr 17 '19 at 12:26
  • re the culture parameter routing, you need to create and register the [Culture Route Model](http://ziyad.info/en/articles/12-Configuring_Culture_Route_Model) – LazZiya Apr 17 '19 at 12:29
  • Thanks for giving me clarity, and I cannot switch to 2.1 or 2.2 as both are buggy frameworks, I had faced 100% CPU consumption problem with both frameworks and I had to switch back to 2.0, many people were facing same issue, might be MS fixed this in 3.0 but not sure. – Jitendra Pancholi Apr 18 '19 at 09:11
  • and I followed other article for 2.0 which worked well, Thanks :) – Jitendra Pancholi Apr 18 '19 at 09:12
0

I have found some useful articles for creating multi language in asp.net mvc and angular. The first one is going to multi language asp.net mvc and second link is going to multi language in angular

First https://findandsolve.com/articles/localization-in-asp.net-mvc-razor-step-by-step

Second https://findandsolve.com/articles/globalization-and-localization-using-angular-or-multi-language-select-using-angular-i18n-example-step-by-step

Sundar
  • 142
  • 1
  • 15