Google Translate: Translation API Basic, Translate
Translates using Google Translation API v2. Specifying the target language is mandatory, but specifying the source language is optional (Detected). The NMT (Neural Machine Translation) model is applied in most languages, while the PBMT (Phrase-Based Machine Translation) model is done in some languages.
Download
- Google-Translate-Translation-API-Basic-Translate.xml
- Google-Translate-Translation-API-Basic-Translate-2023.xml
- 2023-08-17 (C) Questetra, Inc. (MIT License)
- for “GraalJS standard (engine-type 3)” on v15.0 or above
2021-03-09 (C) Questetra, Inc. (MIT License)
https://support.questetra.com/addons/google-translate-translation-api-basic-translate/
The Addon-import feature is available with Professional edition.
Notes
- Machine translation is performed using Google Cloud Translation Basic (Translation API v2).
- You will be charged for Cloud Translation based on monthly usage.
- https://cloud.google.com/translate?hl=en#section-5
- Does not support Glossary, unlike Google Cloud Translation Advanced (Translation API v3).
- The input text can be plain text or HTML. (Any HTML tags in the input will not be translated.)
- Set up automatic communication (API communication) in advance on Google Cloud Console.
- Select (or create, if needed) a Google Cloud project.
- Activate Cloud Translation API in the project.
- Create an OAuth 2.0 Client in credential, then make a note of ClientID and ClientSecret.
- Setting example of OAuth consent screen
- App name:
TransForBpms
- App name:
- Setting example of OAuth 2.0 client
- Application type: Web application
- Name:
Bpms-Trans
- JavaScript Source:
- Redirect URI:
https://s.questetra.net/oauth2callback
- Setting example of OAuth consent screen
- Documentation: https://cloud.google.com/translate/docs/setup
- Config [HTTP Authentication] of the Workflow Platform, then get the Refresh token.
- Setting example of HTTP Authentication (OAuth2)
- Name:
-“GoogleTrans
“ - Authorization Endpoint URL
-“https://accounts.google.com/o/oauth2/auth?access_type=offline&approval_prompt=force
“ - Token Endpoint URL
-“https://accounts.google.com/o/oauth2/token
“ - Scope
-“https://www.googleapis.com/auth/cloud-translation
“ - Client ID
- (noted ClientID)
- Consumer Secret
- (noted ClientSecret)
- Name:
- Setting example of HTTP Authentication (OAuth2)
Capture

Appendix
- Supported Language Codes in Cloud Translation API (v2) – Over 100 languages
- English: “en”, Spanish: “es”, French: “fr”, German: “de”, Portuguese: “pt”
- Japanese: “ja”, Korean: “ko”, Chinese Simplified: “zh-CN”, Chinese Traditional: “zh-TW”, etc
- https://cloud.google.com/translate/docs/languages
- https://cloud.google.com/translate/docs/basic/discovering-supported-languages
- Retranslation A
- On the back cover of their final issue was a photograph of an early morning country road, the kind you might find yourself hitchhiking on if you were so adventurous. Beneath it were the words: “Stay Hungry. Stay Foolish.” It was their farewell message as they signed off. Stay Hungry. Stay Foolish. And I have always wished that for myself. And now, as you graduate to begin anew, I wish that for you. Stay Hungry. Stay Foolish.
- 最終号の裏表紙には、早朝の田舎道の写真がありました。冒険心があれば、ヒッチハイクをしているかもしれません。その下には、「空腹のまま。愚かのまま」という言葉がありました。彼らがサインオフしたとき、それは彼らの別れのメッセージでした。空腹のまま。愚かでいなさい。そして、私はいつも自分自身のためにそれを望んでいました。そして今、あなたが卒業して新たに始めるとき、私はあなたのためにそれを望みます。空腹のまま。愚かでいなさい。
- On the back cover of the final issue was a photo of a country road in the early morning. If you are adventurous, you may be hitchhiking. Below that was the phrase, “Stay hungry. Stay stupid.” It was their farewell message when they signed off. Stay hungry. Be stupid. And I always wanted it for myself. And now, when you graduate and start anew, I want it for you. Stay hungry. Be stupid.
- Retranslation B
- I have a dream that my four little children will one day live in a nation where they will not be judged by the color of their skin but by the content of their character. I have a dream today!
- いつの日か、4人の小さな子供たちが肌の色ではなく性格の内容で判断される国に住むことを夢見ています。今日は夢があります!
- One day, I dream of four little children living in a country that is judged by their personality rather than their skin color. I have a dream today!
- Retranslation C
- 吾輩は猫である。名前はまだ無い。どこで生れたかとんと見当がつかぬ。何でも薄暗いじめじめした所でニャーニャー泣いていた事だけは記憶している。吾輩はここで始めて人間というものを見た。しかもあとで聞くとそれは書生という人間中で一番獰悪(どうあく)な種族であったそうだ。
- I am a cat. As yet I have no name. I’ve no idea where I was born. All I remember is that I was miaowing in a dampish dark place when, for the first time, I saw a human being. This human being, I heard afterwards, was a member of the most ferocious human species; a shosei, one of those students who, in return for board and lodging, perform small chores about the house.
- 吾輩は猫である。まだ名前はありません。どこで生まれたのかわかりません。私が覚えているのは、初めて人間を見たとき、私は湿った暗い場所で呟いていたということだけです。この人間は、後で聞いたように、最も凶暴な人間の種のメンバーでした。宿舎と宿泊の見返りに家の雑用をする学生の一人、正生。
Pingback: DeepL: Text, Translate – Questetra Support