scala translation