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 translation
  • EN is set for input language
  • FR 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:

LanguageISO-639 code
Afrikaansaf
Albaniansq
Amharicam
Arabicar
Armenianhy
Assameseas
Aymaraay
Azerbaijaniaz
Bambarabm
Basqueeu
Belarusianbe
Bengalibn
Bhojpuribho
Bosnianbs
Bulgarianbg
Catalanca
Cebuanoceb
Chinese (Simplified)zh-CN or zh (BCP-47)
Chinese (Traditional)zh-TW (BCP-47)
Corsicanco
Croatianhr
Czechcs
Danishda
Dhivehidv
Dogridoi
Dutchnl
Englishen
Esperantoeo
Estonianet
Eweee
Filipino (Tagalog)fil
Finnishfi
Frenchfr
Frisianfy
Galiciangl
Georgianka
Germande
Greekel
Guaranign
Gujaratigu
Haitian Creoleht
Hausaha
Hawaiianhaw
Hebrewhe or iw
Hindihi
Hmonghmn
Hungarianhu
Icelandicis
Igboig
Ilocanoilo
Indonesianid
Irishga
Italianit
Japaneseja
Javanesejv or jw
Kannadakn
Kazakhkk
Khmerkm
Kinyarwandarw
Konkanigom
Koreanko
Kriokri
Kurdishku
Kurdish (Sorani)ckb
Kyrgyzky
Laolo
Latinla
Latvianlv
Lingalaln
Lithuanianlt
Lugandalg
Luxembourgishlb
Macedonianmk
Maithilimai
Malagasymg
Malayms
Malayalamml
Maltesemt
Maorimi
Marathimr
Meiteilon (Manipuri)mni-Mtei
Mizolus
Mongolianmn
Myanmar (Burmese)my
Nepaline
Norwegianno
Nyanja (Chichewa)ny
Odia (Oriya)or
Oromoom
Pashtops
Persianfa
Polishpl
Portuguesept
Punjabipa
Quechuaqu
Romanianro
Russianru
Samoansm
Sanskritsa
Scots Gaelicgd
Sepedinso
Serbiansr
Sesothost
Shonasn
Sindhisd
Sinhala (Sinhalese)si
Slovaksk
Sloveniansl
Somaliso
Spanishes
Sundanesesu
Swahilisw
Swedishsv
Tagalog (Filipino)tl
Tajiktg
Tamilta
Tatartt
Telugute
Thaith
Tigrinyati
Tsongats
Turkishtr
Turkmentk
Twi (Akan)ak
Ukrainianuk
Urduur
Uyghurug
Uzbekuz
Vietnamesevi
Welshcy
Xhosaxh
Yiddishyi
Yorubayo
Zuluzu