Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET 5 MVC 6 Multi Language Application

I am having trouble making my application multi-language. I tried the old way with resources (resx files) but it seems they are missing from ASP.NET 5, can you please help me with some guidance or a link to read about this? I searched the web for an article or something but I found nothing. Thank you.

like image 929
Iulian Florescu Avatar asked Jul 17 '15 17:07

Iulian Florescu


People also ask

Is ASP.NET MVC 5 outdated?

Is the framework outdated? ASP.NET MVC is no longer in active development. The last version update was in November 2018. Despite this, a lot of projects are using ASP.NET MVC for web solution development.

Is ASP.NET MVC 5 cross-platform?

The main difference between ASP.NET Core and ASP.NET MVC 5 is their cross-platform approach. ASP.NET Core can be used on Windows, Mac, or Linux, whereas ASP.NET MVC 5 can only be used for applications on Windows.


2 Answers

from statements made in the asp.net community standups on Scott Hanselman's youtube page I think localization won't be available until beta6 or beta7

you might be able to create resx files in your project now but you won't be able to use them yet

I'm in the same boat with my own project and waiting to tackle localization once it is possible

like image 199
Joe Audette Avatar answered Oct 18 '22 19:10

Joe Audette


Resource file are still available with Asp.Net 5 application. You need to right click in the Solution Explorer the project (or folder inside a project) and select Add New Item. From there you can get under Visual C# > General > Resources File.

like image 42
Patrick Desjardins Avatar answered Oct 18 '22 18:10

Patrick Desjardins