Open khallid-itdevtech opened 2 months ago
Looks like this issue has been identified as a candidate for community contribution. If you're considering sending a PR for this issue, look for the Summary Comment
link in the issue description. That comment has been left by an engineer on our team to help you get started with handling this issue. You can learn more about our Help Wanted process here
Is there an existing issue for this?
Describe the bug
I am using Blazor Components inside .Net8 MVC Web Application. I am using IViewLocalizer inside razor views it works fine but when i use IViewLocalizer inside Blazor Components if Key doesn't exists it throughs Exception
Expected Behavior
IViewLocalizer should work same as .Net8 MVC Razor views / pages. Return the Key if locale string doesn't find @inject IViewLocalizer Localizer Localizer["Khalid"] doesn't give exception in .Net8 MVC where as in Blazor components if throughs exception
Steps To Reproduce
No response
Exceptions (if any)
NullReferenceException: Object reference not set to an instance of an object. Microsoft.AspNetCore.Mvc.Localization.ViewLocalizer.get_Item(string key)
.NET Version
.Net8
Anything else?
No response