Closed andreiholubeu closed 5 years ago
Closing this. Please re-open if still an issue.
Hi,
I try use to use i18n in a WebApi Owin project but, nuggets are not translate in the response.
Here my config:
Startup.cs :
var config = GlobalConfiguration.Configuration;
I18nConfig.Configure();
app.Use(typeof(UrlLocalizationMiddleware));
app.UseWebApi(config);
Global.asax.cs :
protected void Application_ReleaseRequestState(object sender, EventArgs e)
{
var context = Request.GetOwinContext().Get<HttpContextBase>(typeof(HttpContextBase).FullName);
LocalizedApplication.InstallResponseFilter(context);
}
Notes:
Could someone, please, provide me a solution ?
Thanks
Just checking you've followed instructions here https://github.com/turquoiseowl/i18n#owin-support and in related issues? There are restrictions to the OWIN support to be aware of.
Hi,
I try to use the nugget package for localization (using cookie) in asp.net web api but it seems that it is not applied correctly.
My header cookie:
i18n.langtag=fr
But on the exit I am getting value wrapped with [[[]]]:
[[[Value]]]