As with all cognitive services by Microsoft (or any other provider) we get an API with javascript that does the translation.
go to the SDK and download it, you will find many uses for the service for a wide range of people.
From what I have seen the service allows you the next options: