Updated 03082023-111605
https://davidblue.wtf/ddtranslate
googletranslate://?sl=en&tl=tr&text=hello%20world
sl
= source languagetl
= translation languagetext
= the thing you want to translateUpdate: I found that setting
sl=auto
sets the source language to "Detect Language", and that the language values are ISO 639 codes. This discussion has some other potentially useful parameters.
googletranslate://?sl=auto&tl=en&text=[selection]
Send the selected text to the Google Translate app via URL scheme.
Send the selected text to Google Translate for iOS/iPadOS via its URL scheme. If no text is selected, the entire draft contents will be passed.
By default, this action is configured to auto-detect the source (input) language and translate it into English. Using ISO-639 codes (as mentioned in the documentation below,) you should be able to customize this action for your own use.
If you have questions, please do reach out via this Action's Issue on my Drafts-specific GitHub Repository or by any other means.
The only available documentation (that I could find, anyway) for the Google Translate app's URL scheme is in the form of this Stack Overflow answer, copied below.
sl
= source languagetl
= translation languagetext
= the thing you want to translateUpdate: I found that setting
sl=auto
sets the source language to "Detect Language", and that the language values are ISO 639 codes. This discussion has some other potentially useful parameters.
googletranslate://?sl=auto&tl=en&text=[selection]