AdminBundle/Controller/DefaultController.php
public function getDataTablesI18nAction()
    {
        $locale = $this->get('request_stack')->getCurrentRequest()->getLocale();
        $format = $this->get('request_stack')->getCurrentRequest()->getRequestFormat();

        return $this->render(
            'AdminBundle:Default/DataTables_i18n:'.$locale.'.txt.'.$format
        );
    }
public function getDataTablesI18nAction()
    {
        $locale = $this->get('request_stack')->getCurrentRequest()->getLocale();
        $format = $this->get('request_stack')->getCurrentRequest()->getRequestFormat();

        return $this->render(
            'AdminBundle:Default/DataTables_i18n:'.$locale.'.txt.'.$format
        );
    }
Returns the DataTables i18n file

@return Response

@Route("/dataTables.{_format}" , requirements={ "_format" = "json" }, defaults={ "_format" = "json" })
@Method("GET")