adds translator twig extension