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

How to use I18nText in a file that does not heritate from ComponentBase #18

Open
Methraen opened this issue Jan 14, 2020 · 2 comments
Open

Comments

@Methraen
Copy link

Methraen commented Jan 14, 2020

@jsakamoto
This :
MyText = await I18nText.GetTextTableAsync<I18nText.text>(this);
Does not work in a file that does not heritate from ComponentBase so is there a way to make it work ?
I tried to replace this with null but it displays no data...

@Methraen Methraen changed the title How to use it in a file that does not heritate from ComponentBase How to use I18nText in a file that does not heritate from ComponentBase Jan 14, 2020
@jsakamoto
Copy link
Owner

Unfortunately, there is no solution at this time.

However, I planed that add support for .NET Core IStringLocalizer feature.

This will help you to resolve your problem, I think.

It is hard work to complete that plan, therefore please wait about a month if you can.

@Methraen
Copy link
Author

I will wait thank you anyway.

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

2 participants