There is a solution with three projects:
NameThatTitle.WebApp - directly ASP.Net Core project
In the Startup class, setting the folder for localization resources is set as follows:services.AddLocalization(options => options.ResourcesPath = "Localizations");
There is a class NameThatTitle.Domain.Services.AccountService for which I use the appropriate localizer: private readonly IStringLocalizer<AccountService> _localizer;
I tried to place the corresponding resource file and right in the root of the resource folder with the full name NameThatTitle.Domain.Services.AccountService.ru.resx and form a path instead of NameThatTitle/Domain/Services/AccountService.ru.resx , but for some reason the translation is not picked up from resource files.
A similar problem with an empty stub class is NameThatTitle.WebApp.Infrastructure.SharedResource , which I place on Infrastructure/SharedResource.ru.resx . (I use for IdentityErrorDescriber ).
Moreover, DataAnnotation for classes in NameThatTitle.WebApp.ViewModels normally picked up from ViewModels/<ClassName>.ru.resx
Also, judging by the source code of the localizer, it uses the logger, but in my logs I don’t see any records related to localization = (
