Enhance template generation by passing languages. Refs #8.