this.site
Twig Property
You can access the active site via this.site and it returns the object System\Models\SiteDefinition current site definition.
# Retrieving Data From the Site
___TWIG0___
___TWIG1___
___TWIG2___
___TWIG3___
___TWIG4___
___TWIG5___
# Checking the Active Site
___TWIG0___
<h1>Only display for English</h1>
___TWIG1___
# Getting the Current Selected Locale
The locale attribute will return the current locale if it is specified, or return an empty value when none is specified.
<html lang="___TWIG0___">
Use the hard_locale attribute to always return a locale value, which uses the default locale when none is specified.
<html lang="___TWIG0___">