Global:Area.LongLang
Version: - globalvalueSummary
Returns the extended ISO language code for the current area (language-region), e.g. if you use English as language in United States then the LongLang tag is: en-US.
Settings
The value is based on the Regional settings field for the website.
(Modules > Website > Website tab > Settings > Regional settings)
Examples
Outputting the template tag
@GetGlobalValue("Global:Area.LongLang")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetGlobalValue("Global:Area.LongLang"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetGlobalValue("Global:Area.LongLang");
}
Outputting the template tag
<!--@Global:Area.LongLang-->
Check if globalvalue has a value
<!--@If Defined(@Global:Area.LongLang)-->
Let's output this tag here: <strong><!--@Global:Area.LongLang--></strong>
<!--@EndIf(@Global:Area.LongLang)-->