Closed Niputi closed 3 years ago
I have not tested this case by myself yet, but could you try the code below?
ctx.Services.AddI18nText(r =>
{
// 👇 Add this code.
r.GetInitialLanguageAsync = (serviceProvider, options) => new ValueTask<string>("en");
r.IsWasm = () => false;
});
I'm not certain at this time, but the reason for your problem looks related to getting the current language code.
I hope the solution above resolves this issue.
yes. that made the test complete
thank you
How am I supposed to write bunit tests?
I get the following error message during
OnInitializedAsync()
I have added the i18n service to the service collection like this