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
Hi Peeps,
I was just wondering if anyone knows how to find a pages current culture from a razor view?
Hi,
I figured this out. This is what we should be looking for.
<p> @System.Threading.Thread.CurrentThread.CurrentCulture.DisplayName </p>
I documented a blog post for this here.
https://www.umbrajobs.com/blog/posts/2018/july/umbraco-get-current-language-culture-in-razor-script/
Hope this helps someone else out.
Kind Regards
David
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Umbraco - Get current language culture in razor script
Hi Peeps,
I was just wondering if anyone knows how to find a pages current culture from a razor view?
Hi,
I figured this out. This is what we should be looking for.
I documented a blog post for this here.
https://www.umbrajobs.com/blog/posts/2018/july/umbraco-get-current-language-culture-in-razor-script/
Hope this helps someone else out.
Kind Regards
David
is working on a reply...