damienbod / AspNetCoreLocalization

Localization.SqlLocalizer & ASP.NET Core MVC Localization Examples
http://damienbod.com/2015/10/21/asp-net-5-mvc-6-localization/
MIT License
251 stars 101 forks source link

make IViewLocalizer can create new record when localised string does … #57

Closed CoreDX9 closed 5 years ago

CoreDX9 commented 5 years ago

Method "public IStringLocalizer Create(string baseName, string location)" will be called when use IViewLocalizer in Razor view. This method was called with constant false instead of local variable “returnOnlyKeyIfNotFound“ and “createNewRecordWhenLocalisedStringDoesNotExist“ for constructor of SqlStringLocalizer.