A critical vulnerability was discovered in React Server Components (Next.js). Our Systems Remain Fully Protected. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our Systems Remain Fully Protected. Learn More.
Hi,
Can anyone please tell me how to detect the language the editor is working in Edit Mode ?
I don't wnat the language of the page they're editing, but the language they are working in.
Usually I'd go after:
EPiServer.Personalization.EPiServerProfile.Current.Language
but this returns an empty string if the language isn't specifically specified.
There's HttpContext.Current.Items.ContentLanguage, but I can't find any documentation for this.
Cheers,
Andy