public function compile()
    {
        $translator = $this
            ->checkNamespace($this->configuration)
            ->checkAlias($this->configuration)
            ->checkMethods($this->configuration)
            ->createTranslator();

        return $translator;
    }
public function compile()
    {
        $translator = $this
            ->checkNamespace($this->configuration)
            ->checkAlias($this->configuration)
            ->checkMethods($this->configuration)
            ->createTranslator();

        return $translator;
    }
public function compile ( ) { $ translator = $ this -> checkNamespace ( $ this -> configuration ) -> checkAlias ( $ this -> configuration ) -> checkMethods ( $ this -> configuration ) -> createTranslator ( ) ; return $ translator ; }
Compile translator.

@return EntityTranslatorInterface $translator
Compile translator .