-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make NullStringLocalizer & HtmlLocalizer Public #10939
Conversation
@Skrypt could you please have a look if you have a time, seems Seb is quite busy ;) |
Ok looks good to me. The only thing I've not looked at is the generic classes utility. Else, this is just some moving around of classes for cleaner overall usage. |
@sebastienros could we merge this? |
Can we merge this? |
This pull request has merge conflicts. Please resolve those before requesting a review. |
6d123ae
to
bedba18
Compare
This pull request has merge conflicts. Please resolve those before requesting a review. |
@Skrypt any other thing to add here or shall I merge? |
This PR solved two issue:
NullStringLocalizer
andNullHtmlLocalizer
without need to use localizer factory, which quite useful in unit testingIStringLocalizer<T>
and/orIHtmlLocalizer<T>
testable without using mocksOrchardCore.Localization.Abstractions
is a suitable place for such types, something similiar toNullLogger
No breaking-changes here,
NullStringLocalizerFactory
andNullHtmlLocalizerFactory
are still using the above types without any issues