Update translate.js

Wil finish the mess of the for loop tomorrow