Google Translate
Using Google Translate to translate content to any language.
About
The Google text translation component is designed to translate any field from content to a specified target language represented by two-letter short form (ISO 3166-1 alpha-2 code). The translated text will be presented in the field enrichment.text_translation
by default. It should be noted that we can use this component in both real-time and batch-processing manner.
Adding to your Dynamic Pipeline
This Component can be added to your Dynamic pipelines through the "Google Translate" component. It requires the following fields for configuration:
- Destination Path (Required): the metadata field for the output of the translation. By default, it is set to
enrichment
field. The field can be an existing field, or the component can create a new field for this functionality. - Target language (Required): the target language for translation (in the form of ISO-3166-1 alpha-2 code)
- Target Text (Required): This is the input text field to be translated. Any metadata field can be chosen as an input based on data sources. The default field is content.body in this component.
The following example shows a dynamic pipeline configuration for the Google Translate component. In this example:
enrichment
is set as the destination path for the output of the translation and outputted asenrichment.text_translation
content.body
from the input document is set as the input “Text” for translationEN
is set for input languageFR
is set for target language
Compatible Languages
The language coverage is continuously improved as this component uses Google Translate in the back end. Referring to https://cloud.google.com/translate/docs/languages the language coverage is:
Language | ISO-639 code |
---|---|
Afrikaans | af |
Albanian | sq |
Amharic | am |
Arabic | ar |
Armenian | hy |
Assamese | as |
Aymara | ay |
Azerbaijani | az |
Bambara | bm |
Basque | eu |
Belarusian | be |
Bengali | bn |
Bhojpuri | bho |
Bosnian | bs |
Bulgarian | bg |
Catalan | ca |
Cebuano | ceb |
Chinese (Simplified) | zh-CN or zh (BCP-47) |
Chinese (Traditional) | zh-TW (BCP-47) |
Corsican | co |
Croatian | hr |
Czech | cs |
Danish | da |
Dhivehi | dv |
Dogri | doi |
Dutch | nl |
English | en |
Esperanto | eo |
Estonian | et |
Ewe | ee |
Filipino (Tagalog) | fil |
Finnish | fi |
French | fr |
Frisian | fy |
Galician | gl |
Georgian | ka |
German | de |
Greek | el |
Guarani | gn |
Gujarati | gu |
Haitian Creole | ht |
Hausa | ha |
Hawaiian | haw |
Hebrew | he or iw |
Hindi | hi |
Hmong | hmn |
Hungarian | hu |
Icelandic | is |
Igbo | ig |
Ilocano | ilo |
Indonesian | id |
Irish | ga |
Italian | it |
Japanese | ja |
Javanese | jv or jw |
Kannada | kn |
Kazakh | kk |
Khmer | km |
Kinyarwanda | rw |
Konkani | gom |
Korean | ko |
Krio | kri |
Kurdish | ku |
Kurdish (Sorani) | ckb |
Kyrgyz | ky |
Lao | lo |
Latin | la |
Latvian | lv |
Lingala | ln |
Lithuanian | lt |
Luganda | lg |
Luxembourgish | lb |
Macedonian | mk |
Maithili | mai |
Malagasy | mg |
Malay | ms |
Malayalam | ml |
Maltese | mt |
Maori | mi |
Marathi | mr |
Meiteilon (Manipuri) | mni-Mtei |
Mizo | lus |
Mongolian | mn |
Myanmar (Burmese) | my |
Nepali | ne |
Norwegian | no |
Nyanja (Chichewa) | ny |
Odia (Oriya) | or |
Oromo | om |
Pashto | ps |
Persian | fa |
Polish | pl |
Portuguese | pt |
Punjabi | pa |
Quechua | qu |
Romanian | ro |
Russian | ru |
Samoan | sm |
Sanskrit | sa |
Scots Gaelic | gd |
Sepedi | nso |
Serbian | sr |
Sesotho | st |
Shona | sn |
Sindhi | sd |
Sinhala (Sinhalese) | si |
Slovak | sk |
Slovenian | sl |
Somali | so |
Spanish | es |
Sundanese | su |
Swahili | sw |
Swedish | sv |
Tagalog (Filipino) | tl |
Tajik | tg |
Tamil | ta |
Tatar | tt |
Telugu | te |
Thai | th |
Tigrinya | ti |
Tsonga | ts |
Turkish | tr |
Turkmen | tk |
Twi (Akan) | ak |
Ukrainian | uk |
Urdu | ur |
Uyghur | ug |
Uzbek | uz |
Vietnamese | vi |
Welsh | cy |
Xhosa | xh |
Yiddish | yi |
Yoruba | yo |
Zulu | zu |
Updated 4 months ago