Service translator doesn't exist

Nette\Environment::getService('translator') doesn't exist, instead of this Nette\Environment::getService('gettextTranslator.translator') have to be called.