loadLanguageFile
The loadLanguageFile hook is triggered when a language file is loaded. It
passes the file name and the language as arguments and does not expect a
return value.
Parameters
string
$nameThe language file to be loaded (e.g.
tl_content), without file extension.string
$currentLanguageThe language, usually the same as
$GLOBALS['TL_LANGUAGE']but the call to\Contao\System::loadLanguageFileaccepts a language parameter.string
$cacheKeyThe internal cache key.