[translate]: Fixed minor JS bug