replace deprecated usage of  with  'translate'