protected function registerTranslator()
    {
        $this->getContainer()
            ->share('translator', function () {
                $translator = new Translator('en');
                $translator->addLoader('php', new PhpFileLoader());
                return $translator;
            });
    }