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
Currently Implementing localization, and noticed that IHtmlLocalizer<Login> for some reasons cause the _resourceBaseName to be set improperly.
Login in my case is a compiled resource file available in the Justif.Resources.Views.User namespace.
For some reasons, IHtmlLocalizer seems to duplicate the second part of the namespace, here Resources, resulting in this base name : Justif.Resources.Resources.Views.User.Login.
Which is very odd, since IViewLocalizer injected in a razor view doesn't seem to have an issue, and it's just a wrapper on IHtmlLocalizer.
HOWEVER, using IHtmlLocalizer<Login> in the razor view result in the same behavior.
(Also adding IViewLocalizer in the controller's constructor, does not allow me to use the login view's localizer, so i need info on how to get that working without using the factory manually)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently Implementing localization, and noticed that
IHtmlLocalizer<Login>
for some reasons cause the_resourceBaseName
to be set improperly.Login in my case is a compiled resource file available in the
Justif.Resources.Views.User
namespace.For some reasons,
IHtmlLocalizer
seems to duplicate the second part of the namespace, hereResources
, resulting in this base name :Justif.Resources.Resources.Views.User.Login
.Which is very odd, since
IViewLocalizer
injected in a razor view doesn't seem to have an issue, and it's just a wrapper onIHtmlLocalizer
.HOWEVER, using
IHtmlLocalizer<Login>
in the razor view result in the same behavior.(Also adding
IViewLocalizer
in the controller's constructor, does not allow me to use the login view's localizer, so i need info on how to get that working without using the factory manually)Beta Was this translation helpful? Give feedback.
All reactions