How to define and use directive on Absinthe

Anybody can help to define a directive and then on a middleware know the directive value for any field?
My goal is “change” the field value depending of the directive value(for localization support)