Difference between revisions of "Action: Translate Text"

(Created page with "== About == <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> This action uses on device translation, so the translation may be of...")
 
Line 45: Line 45:
  
 
Display Dialog | Output = Hello world
 
Display Dialog | Output = Hello world
</pre><br>
+
</pre>
  
 
<pre style="background-color: #387F3D; color: white; border-radius: 10px; padding: 10px;">
 
<pre style="background-color: #387F3D; color: white; border-radius: 10px; padding: 10px;">
Line 51: Line 51:
  
  
</pre><br>
+
</pre>
  
 
<pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;">
 
<pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;">

Revision as of 23:10, 11 January 2024

About

This action uses on device translation, so the translation may be of a lower quality than some online services.

Available configuration

Enter text

Enter the text to translate.

Magic Text

Source language

Select the language of the text to be translated, you may need to download the language pack.


Output language

Choose the text output language, you may need to download the language pack.


Output String Variable

You need a variable of type string to store the result of the translation.


Example

When you touch the floating button, it shows a variable dialog box for typing text and it will show you a dialog with the translation.

Triggers

Floating button (Translate)


Actions

Set Variable | Output: [User Prompt]

Translate Text| Spanish > English: {lv=Output}

Display Dialog | Output = Hello world
Constraints


Local variables

Output = Hello world