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

Problem on localization #3901

Open
sciencekiller opened this issue Jun 9, 2024 · 1 comment
Open

Problem on localization #3901

sciencekiller opened this issue Jun 9, 2024 · 1 comment

Comments

@sciencekiller
Copy link

I'm now using ant blazor to develop an app. Following to the document, I create a test project. I create a Resouces folder and Index.en.resx and Index.zh-CN.resx. In Program.cs, I added

builder.Services.AddInteractiveStringLocalizer();
builder.Services.AddLocalization(options =>
{
    options.ResourcesPath = "Resources";
});

When I try to inject IStringLocalizer, it refers to System.Index and I can't find MyProject.Resources.Index. What can I do?

Any help are appreciated! And feel free to ask me any detail!

@sciencekiller
Copy link
Author

This project is newly-created and server-side. And I remember there was a csharp designer class when I was writing a WPF app last year. So need this app a designer class?

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

No branches or pull requests

1 participant