jlang($key = null, $debug = false)
This function is a proxy of Language::getInstance()
. It allows to access HTML drawing classes inside twig layouts.
Parameters
string
$lang [optional] The language to use. Default:en-GB
boolean
$debug [optional] The debug mode. Default:false
Returns
\Joomla\CMS\Language\Language
Language object
Examples
{# Show the spanish language name #}
{{ jlang('es-ES').getName() }}