jlang

This variable is a proxy of Factory::getLanguage(). It allows to access the active language inside twig layouts.

  1. Returns
  2. Examples

Returns

Joomla\CMS\Language\Language The active language.

Examples

{# 
	Use active language tag inside a layout. Will print something like:
	Active language is en-GB 
#}
<pre>Active language is {{ jlang.getTag() }}</pre>