Gets the central language-string (ISO-Code).

This string shall be used as primary and fallback setting for translations and localized renderings.


Syntax

getLanguage(): ?string

Returns the language code-string, e.g. "DE".

Example

Getting the language-code-string, currently set for the rendering.

{% set myLang = hublify.getLanguage() %}