I've been Following this tutorial "https://www.youtube.com/watch?v=Hy9G30nncMM". with my own modifications.
ConfigureServices:
services.AddLocalization(opt => { opt.ResourcesPath = "Resources"; });
services.AddMvc().AddViewLocalization(LanguageViewLocationExpanderFormat.Suffix)
.AddDataAnnotationsLocalization();
services.AddControllersWithViews();
Configure:
var supportedCultures = new[] {"en","ar"};
var localizationOptions = new RequestLocalizationOptions()
.SetDefaultCulture(supportedCultures[0])
.AddSupportedCultures(supportedCultures)
.AddSupportedUICultures(supportedCultures);
app.UseRequestLocalization(localizationOptions);
Folder Hierarchy:
Result:
Even that i set the default culture to supportedCultures[0] which is "en", the app gets the "ar".

Any Help on this matter would be appreciated. Thanks in Advance.



