#nedryse/translateable-template-factory (cc)# Pavel Železný (2bfree), 2014 (pavelzelezny.cz)
Nette Framework 2.4.0 or higher
Proper way how to load translator into the presenters and controls template in the Nette framework based applications
Prefered way to intall is by the Composer
composer require nedryse/translateable-template-factory:~1.1
Or by manualy adding into the composer.json
{
"require":{
"nedryse/translateable-template-factory": "~1.1"
}
}
Add following code into the config.neon
common:
services:
nette.templateFactory: Nedryse\Nette\Bridges\ApplicationLatte\TranslatableTemplateFactory
At the moment of the template creation in the presenter or in the control, the translator is already loaded in it