-
Notifications
You must be signed in to change notification settings - Fork 65
IHtmlLocalizer parameter replacement stopped working. #353
Comments
Could you please provide us with a repo to reproduce the issue? |
Unfortunately it's a private repo. I do not have another project with many languages to test. But everything indicates that this occurred after upgrading many AspNetCore packages to 1.1.1. Another change I made was to add Areas and Feature Slices. I do not think it's the cause. |
Could you please create a new repo with minimal things to help us to reproduce the current issue |
Before that please have a look to the issue #343 |
I could not reproduce the problem in other project. Soon as possible I will try to deconstruct the parts of project with trouble to see if I can. |
Seem naming issue, please check the issue that I mentioned above |
Yes, that may be it. But it should not replace the positional parameter in the same way (from inline text). |
Time has passed and I have not returned to this. I believe it was caused by the file's encoding format, I did not observe any more behavior like this when normalizing all files. If I find something more relevant I return to the topic, |
IHtmlLocalizer parameter replacement stopped working.
@inject IHtmlLocalizer<SharedResource> SharedLocalizer
@{ var subtitle = SharedLocalizer["Associate your {0} account.", ViewData["LoginProvider"]].Value; }
Now subtitle print out literally:
Associate your {0} account.
The text was updated successfully, but these errors were encountered: