Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have an issue with a multi language website.
The CultureInfo.CurrentCulture returns OK (meaning, if i'm browsing the German website, I get de-DE).
BUT, when I have to call an handler file (*.ashx), I get the site default language (umbracoDefaultUILanguage).
Problem is, I need to get the current Culture, which is de-DE, but inside handler it's just does not work.
It's because your handler does not now about the current language. It is not tied to a umbraco page request.
You will get the same issue when you have a web api method.
What we do is pass the current culture to the api and set the culture of the current thread with that.
So what you are actually saying is that I have to pass a parameter to the handler?
That is exactly what I would do.
Thank you very much Dave,
I thought so too, but I wanted to be sure.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted