Skip to content
This repository was archived by the owner on Nov 29, 2018. It is now read-only.

IHtmlLocalizer parameter replacement stopped working. #353

Closed
julianpaulozzi opened this issue Apr 6, 2017 · 8 comments
Closed

IHtmlLocalizer parameter replacement stopped working. #353

julianpaulozzi opened this issue Apr 6, 2017 · 8 comments

Comments

@julianpaulozzi
Copy link

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.

@hishamco
Copy link
Contributor

hishamco commented Apr 6, 2017

Could you please provide us with a repo to reproduce the issue?

@julianpaulozzi
Copy link
Author

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.

@hishamco
Copy link
Contributor

hishamco commented Apr 6, 2017

Could you please create a new repo with minimal things to help us to reproduce the current issue

@hishamco
Copy link
Contributor

hishamco commented Apr 7, 2017

Before that please have a look to the issue #343

@julianpaulozzi
Copy link
Author

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.

@hishamco
Copy link
Contributor

Seem naming issue, please check the issue that I mentioned above

@julianpaulozzi
Copy link
Author

Yes, that may be it. But it should not replace the positional parameter in the same way (from inline text).

@julianpaulozzi
Copy link
Author

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,
Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants