make translate a generator