Fix resource twig extension

I would change this method to ``translateKey``