You are viewing a section of Superface that will be deprecated in Q4 2023. Until then, you can continue to use it as you have before but we recommend that you migrate to our latest version soon. For more details visit superface.ai/docs/migrate.

Language Translate

language/translate@1.0.2
1 provider

Translate text usecase

Translate text to another language

Input
Text
Target language
Source language
Result
Text
Source language

1.Choose a provider

2.Use TranslateText with mock in your code

Below instructions are for our Node.js SDK. Use OneService for other languages.
npm i @superfaceai/one-sdk

Structure details

Input (object)

text
targetLanguage
Language that specified text is translated into
sourceLanguage
Language of specified text

Example

Result (object)

text
sourceLanguage
Language of specified text

Example

Implementation details

Provider
mock
Use case
TranslateText
Author
@superface
Source
Verified