README ¶ { "image": "direktiv/google-translator", "desc": "Reads a string and converts it to the targeted language." } Google Translator Reads a string and converts it to the targeted language. Direktiv An example workflow of reading the string and converting to a target language. id: read-message functions: - id: translate image: direktiv/google-translator:v1 states: - id: read type: action action: function: translate input: jq(.) Input The input required to run the above workflow properly is the following: input: message: "Hello World!" "target-language": "ja" serviceAccountKey: jq(.secrets.SERVICE_ACCOUNT_KEY) Output Upon successfully translating the string using Google's API. THe following output will appear { "message": "こんにちは世界" } Error In the case that an error is encountered, it will present in the following format: { "errorCode": "com.google-translator.error", "errorMsg": "Something Went Wrong" } Expand ▾ Collapse ▴ Documentation ¶ There is no documentation for this package. Source Files ¶ View all Source files main.go Click to show internal directories. Click to hide internal directories.