---
title: "TextTranslation"
language: "en"
type: "Symbol"
summary: "TextTranslation[text] translates text into the current default language. TextTranslation[text, lang] translates text into the language specified by lang. TextTranslation[text, lang1 -> lang2] translates text from language lang1 to lang2."
keywords: 
- language translate
- google
- microsoft
- translator
canonical_url: "https://reference.wolfram.com/language/ref/TextTranslation.html"
source: "Wolfram Language Documentation"
related_guides: 
  - 
    title: "Listing of Supported External Services"
    link: "https://reference.wolfram.com/language/guide/ListingOfSupportedExternalServices.en.md"
  - 
    title: "Linguistic Data"
    link: "https://reference.wolfram.com/language/guide/LinguisticData.en.md"
  - 
    title: "Accessing External Services & APIs"
    link: "https://reference.wolfram.com/language/guide/AccessingExternalServicesAndAPIs.en.md"
  - 
    title: "Text Normalization"
    link: "https://reference.wolfram.com/language/guide/TextNormalization.en.md"
  - 
    title: "Locale & Internationalization"
    link: "https://reference.wolfram.com/language/guide/LocaleAndInternationalization.en.md"
  - 
    title: "Natural Language Processing"
    link: "https://reference.wolfram.com/language/guide/NaturalLanguageProcessing.en.md"
related_workflows: 
  - 
    title: "Configure for a Non-English Interface"
    link: "https://reference.wolfram.com/language/workflow/ConfigureForANonEnglishInterface.en.md"
  - 
    title: "Configure Non-English Code Captions"
    link: "https://reference.wolfram.com/language/workflow/ConfigureNonEnglishCodeCaptions.en.md"
related_functions: 
  - 
    title: "WordTranslation"
    link: "https://reference.wolfram.com/language/ref/WordTranslation.en.md"
  - 
    title: "Transliterate"
    link: "https://reference.wolfram.com/language/ref/Transliterate.en.md"
  - 
    title: "LanguageIdentify"
    link: "https://reference.wolfram.com/language/ref/LanguageIdentify.en.md"
  - 
    title: "$Language"
    link: "https://reference.wolfram.com/language/ref/$Language.en.md"
  - 
    title: "LanguageData"
    link: "https://reference.wolfram.com/language/ref/LanguageData.en.md"
  - 
    title: "$ServiceCreditsAvailable"
    link: "https://reference.wolfram.com/language/ref/$ServiceCreditsAvailable.en.md"
---
# TextTranslation

TextTranslation["text"] translates text into the current default language. 

TextTranslation["text", lang] translates text into the language specified by lang.

TextTranslation["text", lang1 -> lang2] translates text from language lang1 to lang2.

## Details and Options

* ``TextTranslation`` requires internet connectivity and uses external services that require [Service Credits](http://www.wolfram.com/service-credits/).

* If no source language ``lang1`` is given, the source language is determined automatically.

* In ``TextTranslation["text"]``, the target language is as given by ``\$Language``.

* Languages can be specified using entities of type ``"Language"`` or strings corresponding to standard names of languages.

* ``TextTranslation`` takes the following options:

[`Method`](https://reference.wolfram.com/language/ref/Method.en.md) 	[`Automatic`](https://reference.wolfram.com/language/ref/Automatic.en.md)	translation service to use

* Possible settings for the ``Method`` option include ``"Microsoft"`` and ``"Google"``.

---

## Examples (6)

### Basic Examples (2)

Translate text to the current default language:

```wl
In[1]:= TextTranslation["今日は良い一日だった"]

Out[1]= "Today was a good day"
```

---

Translate text to specific languages:

```wl
In[1]:= TextTranslation["Where is the library?", #]& /@ {"Russian", "German", "Spanish"}

Out[1]= {"Где находится библиотека?", "Wo befindet sich die Bibliothek?", "¿Dónde está la biblioteca?"}
```

### Scope (3)

#### Language Detection and Specification (3)

Autodetect the source language and translate it to the current default language given by ``\$Language`` :

```wl
In[1]:= TextTranslation["La entropía no puede revertirse"]

Out[1]= "Entropy cannot be reversed"
```

---

Translate text to a specified language:

```wl
In[1]:= TextTranslation["La entropía no puede revertirse", Entity["Language", "French"]]

Out[1]= "Entropie ne peut pas être inversée"
```

---

Specify the source and target languages:

```wl
In[1]:= TextTranslation["La entropía no puede revertirse", Entity["Language", "Spanish"] -> Entity["Language", "Italian"]]

Out[1]= "Entropia non può essere invertito"
```

### Options (1)

#### Method (1)

Use a specific service for translation:

```wl
In[1]:= TextTranslation["There is no such thing as a free lunch", Entity["Language", "German"], Method -> "Google"]

Out[1]= "Es gibt nicht so etwas wie ein kostenloses Mittagessen"
```

## See Also

* [`WordTranslation`](https://reference.wolfram.com/language/ref/WordTranslation.en.md)
* [`Transliterate`](https://reference.wolfram.com/language/ref/Transliterate.en.md)
* [`LanguageIdentify`](https://reference.wolfram.com/language/ref/LanguageIdentify.en.md)
* [`\$Language`](https://reference.wolfram.com/language/ref/$Language.en.md)
* [`LanguageData`](https://reference.wolfram.com/language/ref/LanguageData.en.md)
* [`\$ServiceCreditsAvailable`](https://reference.wolfram.com/language/ref/$ServiceCreditsAvailable.en.md)

## Related Guides

* [Listing of Supported External Services](https://reference.wolfram.com/language/guide/ListingOfSupportedExternalServices.en.md)
* [Linguistic Data](https://reference.wolfram.com/language/guide/LinguisticData.en.md)
* [Accessing External Services & APIs](https://reference.wolfram.com/language/guide/AccessingExternalServicesAndAPIs.en.md)
* [Text Normalization](https://reference.wolfram.com/language/guide/TextNormalization.en.md)
* [Locale & Internationalization](https://reference.wolfram.com/language/guide/LocaleAndInternationalization.en.md)
* [Natural Language Processing](https://reference.wolfram.com/language/guide/NaturalLanguageProcessing.en.md)

## Related Workflows

* [Configure for a Non-English Interface](https://reference.wolfram.com/language/workflow/ConfigureForANonEnglishInterface.en.md)
* [Configure Non-English Code Captions](https://reference.wolfram.com/language/workflow/ConfigureNonEnglishCodeCaptions.en.md)

## History

* [Introduced in 2017 (11.1)](https://reference.wolfram.com/language/guide/SummaryOfNewFeaturesIn111.en.md)