One resource file per language for entire asp.net core project -


is possible have 1 resource file (per language) entire project in stead of per controller , per view (as mentioned in manual https://docs.asp.net/en/latest/fundamentals/localization.html)?

a resource file per controller , language seems bit overkill.

yes, possible. you've override stringlocalizer , stringlocalizerfactory. custom can store resource in 1 or many files, in database or in json files. or other magic...

and need register custom service:

public void configureservices(iservicecollection services) {     services.addsingleton<istringlocalizerfactory, your_localizer_factory>(); } 

Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -