Skip to main content

Translate Text

Open In Collab Run in Postman

In this article you will learn how to translate a text using APIs or CLI commands.

Prerequisites

Make sure to follow Getting Started to login and install translation app. If you are using APIs, save your authorization token in a variable called AUTHORIZATION_TOKEN before moving ahead.

Translate

To translate text using the CLI, use the command mentioned below. Pass source language in -src and target language in -tgt using the language codes mentioned in Language Support.

neuralspace translation parse -t "TEXT TO BE TRANSLATED" -src "en" -tgt "hi"