add api for translation