jsakamoto / Toolbelt.Blazor.I18nText

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

Toolbelt.Blazor.I18nText not load with Microsoft.AspNetCore.Components.WebAssembly.Hosting 3.2.0 (Oficial Blazor) #31

Closed godefoy1988 closed 4 years ago

godefoy1988 commented 4 years ago

Hi, when I change from Blazor RC1 to Official Blazor Toolbelt compile and generate sources files but not load in browser, The problem seems to happen when you change Microsoft.AspNetCore.Blazor.Hosting by Microsoft.AspNetCore.Components.WebAssembly.Hosting and using in builder.Services.AddI18nText();

Captura-toolbelt

godefoy1988 commented 4 years ago

It work add this lines in Program.Main builder.Services .AddTransient(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }) .AddI18nText();