First you have to add the snippets in the admin panel: Setting->Snippets After you add the name of the snippet in the twig file {{ 'nameOfTheSnippetFromBackend'|trans|sw_sanitize }}