Convert the translator API to expose simple one-way translation functions

@justom