You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 29, 2018. It is now read-only.
Currently, I am using one shared resource file RESX to centrally implement localization.
For cshtml views, I am using IStringLocalizer for localization. And I have one folder "Resources" in the project root with one empty "SharedResource.cs" file and one "SharedResource.zh.resx" file in it.
Problem is: When I configure "StartUp.cs"'s "ConfigureService" with code services.AddLocalization(options => options.ResourcesPath = "Resources");, localization does NOT work! But when I removed the options options => options.ResourcesPath = "Resources", it WORKS!
I am doing everything following aspnet core online docs.
Shouldn't I set the resource path when using shared resource?
How could I mix share resource and view-local resource together in one project?