Skip to content
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

Localized resources from Razor component library not working in Blazor project #9417

Closed
gustavnavar opened this issue Apr 16, 2019 · 1 comment
Labels
area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one ✔️ Resolution: Duplicate Resolved as a duplicate of another issue

Comments

@gustavnavar
Copy link

Strings from resources files (.resx) in a component library are not localized correctly when used by a Blazor project.

But they are ok when used by a Razor component project.

You can download the attached solution (WebApplication.zip) to reproduce this issue:

  1. Run the "Blazor.Server" project
  2. Go to /fetchdata page. The page content should be translated to Spanish
  3. On the other side, if you run the "RazorComponent" project, the /fetchdata page is correctly translated to Spanish

WebApplication.zip
Blazor Client
RazorComponent

@Eilon Eilon added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Apr 16, 2019
@mkArtakMSFT mkArtakMSFT added the area-blazor Includes: Blazor, Razor Components label Apr 16, 2019
@mkArtakMSFT
Copy link
Member

Thanks for contacting us, @gustavnavar.
This will be addressed as part of #5471.

@mkArtakMSFT mkArtakMSFT added ✔️ Resolution: Duplicate Resolved as a duplicate of another issue enhancement This issue represents an ask for new feature or an enhancement to an existing one labels Apr 17, 2019
@mkArtakMSFT mkArtakMSFT removed area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates labels May 9, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Dec 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one ✔️ Resolution: Duplicate Resolved as a duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants