Adds translate functionality through d2-translate module and implements this in introlist and directive