public function translationsAction($language)
    {
        $language = $this->getUser()->getInterfaceLanguage($language);

        $translations = $this->get('resourcesTranslations');
        $content = $translations->get($language);

        return new Response($content, 200, ['Content-Type' => 'text/javascript']);
    }
public function translationsAction($language)
    {
        $language = $this->getUser()->getInterfaceLanguage($language);

        $translations = $this->get('resourcesTranslations');
        $content = $translations->get($language);

        return new Response($content, 200, ['Content-Type' => 'text/javascript']);
    }
public function translationsAction ( $ language ) { $ language = $ this -> getUser ( ) -> getInterfaceLanguage ( $ language ) ; $ translations = $ this -> get ( 'resourcesTranslations' ) ; $ content = $ translations -> get ( $ language ) ; return new Response ( $ content , 200 , [ 'Content-Type' => 'text/javascript' ] ) ; }
Return users translations.

@param string $language

@return Response
Return users translations .