Our site currently has two languages with some parts of the site displaying prices in localized currencies.
How to detect if site is domain.com or domain.com/da?
And get the current culture of the site?
Holm76
07/29/2024, 9:22 AM
@inject UmbracoHelper umbracoHelper
Seems to do the trick. And umbracoHelper.CultureDictionary.Culture.TwoLetterISOLanguageName
s
Sander L
07/29/2024, 4:15 PM
Umbracohelper.assignedcontent.culturefrpmdomains is an option (on phone, so syntax is probably off). This will not work if the view is loaded through ajax or something.
If the view inherits umbracoviewpage, you can use Umbraco.... As the Umbraco helper