На данный момент все идет хорошо, за исключением перевода в части сайта, посвященной идентификаторам.
В настоящее время я пытаюсь перевести часть сайта для входа в систему.
Я использую ASP.NET Core 2.2
Имя есть: пространство имен cae.website.Areas.Identity.Pages.Account
Код: Выделить всё
public class InputModel
{
[ExRequired]
[EmailAddress]
[Display(Name = "Email", Prompt = "example@outlook.com")]
public string Email { get; set; }
[ExRequired]
[DataType(DataType.Password)]
[Display(Name = "Password", Prompt = "******")]
public string Password { get; set; }
[Display(Name = "Remember me?")]
public bool RememberMe { get; set; }
}
public void ConfigureServices(IServiceCollection services)
{
services.AddLocalization(opts =>
{
opts.ResourcesPath = "Resources";
});
services.Configure(opts =>
{
var supportedCultures = new List
{
new CultureInfo("en"),
new CultureInfo("fr")
};
opts.DefaultRequestCulture = new RequestCulture("en");
// Formating numbers, dates, etc.
opts.SupportedCultures = supportedCultures;
// UI strings that we have localized
opts.SupportedUICultures = supportedCultures;
});
}
public void Configure(IApplicationBuilder app, IHostingEnvironment env, IServiceProvider serviceProvider)
{
var options = app.ApplicationServices.GetService();
app.UseRequestLocalization(options.Value);
}

Подробнее здесь: https://stackoverflow.com/questions/607 ... ty-net-2-2
Мобильная версия