Usage

translate(text, sourceLanguage, targetLanguage)

Description

Translates the given text via the Google Cloud Translation API.

Note

A Google Cloud Platform API Key has to be configured in structr.conf.
See the documentation on the Translation module for more info.

Example

${translate("Structr is awesome", "en", "de")}

returns

Structr ist großartig

Graph-Browser

Related Articles
About this article
Last change 2018-05-04
Topics