jsakamoto / Toolbelt.Blazor.I18nText

The class library that provides the ability to localize texts on your Blazor app!
Mozilla Public License 2.0
246 stars 23 forks source link

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

Open Methraen opened 4 years ago

Methraen commented 4 years ago

@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...

jsakamoto commented 4 years ago

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 commented 4 years ago

I will wait thank you anyway.