src/Phlexible/Bundle/GuiBundle/Controller/AssetController.php
public function translationsAction(Request $request, $language)
    {
        $translationBuilder = $this->get('phlexible_gui.asset.translations_builder');
        $asset = $translationBuilder->build($language);

        return new BinaryFileResponse($asset, 200, array('Content-Type' => 'text/javascript;charset=UTF-8'));
    }
public function translationsAction(Request $request, $language)
    {
        $translationBuilder = $this->get('phlexible_gui.asset.translations_builder');
        $asset = $translationBuilder->build($language);

        return new BinaryFileResponse($asset, 200, array('Content-Type' => 'text/javascript;charset=UTF-8'));
    }
public function translationsAction ( Request $ request , $ language ) { $ translationBuilder = $ this -> get ( 'phlexible_gui.asset.translations_builder' ) ; $ asset = $ translationBuilder -> build ( $ language ) ; return new BinaryFileResponse ( $ asset , 200 , array ( 'Content-Type' => 'text/javascript;charset=UTF-8' ) ) ; }
Output translations.

@param Request $request
@param string  $language

@return Response
@Route("/translations-{language}.js", name="asset_translations")
Output translations .