A translator, ofcourse, but with some special abilities like super fast and doesn’t need to tap many times, just one time. also it will translate to 2 another language, but just look based on your purpose.
Please read the comment on top of shortcut code for more info
Nyheder
Version 1.0
First release
Hvad den gør
65 handlinger-
Comment###How to look: hard to explain but the basic language is japanese, english, spanish in this, so: if you type in english, output is japanese and spanish if you type in japanese, output is english and spanish if you type in spanish, output is english…
-
If
-
Text
-
If
-
Ask for Inputtranslate
-
If
-
If
-
Extract Text from Image
-
If
-
Choose from Menuno input
-
Choose from Menutake photo
-
Take Photo
-
Choose from Menuchoose
-
Select Photos
-
Extract Text from Image
-
If
-
Get Variable
-
Set Variableinput
-
If
-
Open App
-
Stop This Shortcut
-
Detect Language
-
Set Variabledetects
-
If
-
Translate Text
-
Set Variablejpen
-
Translate Text
-
Set Variablespen
-
Text
-
If
-
If
-
Translate Text
-
Set Variableensp
-
Translate Text
-
Set Variablejpsp
-
Text
-
If
-
If
-
Translate Text
-
Set Variableenjp
-
Translate Text
-
Set Variablespjp
-
Text
-
If
-
Translate Text
-
Set Variableenot
-
Translate Text
-
Set Variablejpot
-
Translate Text
-
Set Variablespot
-
Text
-
Count
-
If
-
Show Result
-
Text
-
If
-
Get Variable
-
Choose from Menu…
-
Choose from Menucopy
-
Split Text
-
Choose from List
-
Copy to Clipboard
-
Choose from Menumore
-
Run ShortcutF/D trans C
-
Choose from Menudone
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#include 'actions/translation'
#include 'actions/photos'
#include 'actions/media'
#include 'actions/images'
#define color orange
#define glyph network
/*
###How to look:
hard to explain but the basic language is japanese, english, spanish in this, so:
if you type in english, output is japanese and spanish
if you type in japanese, output is english and spanish
if you type in spanish, output is english and japanese
###How to change 3 basic language:
you will change the variable that have a comment on top of it which says “basic language”. so if you want to change japanese, check the basic language comment with japanese (basic language: japanese)
tho it’s hard to change if you are not a super well “shortcutter”
###All of the hidden specialities:
-translate directly from picture : run from share sheet to get here directly, or type nothing to add picture
-if doesn’t look well in this, go to google translate with typing “t”
though, I don’t use much ^
*/
const IfResult = if ShortcutInput {
} else {
prompt("translate")
}
const MenuResult = if !IfResult {
if ShortcutInput {
extractImageText(ShortcutInput)
} else {
menu "no input" {
item "take photo":
takePhoto(1, true)
item "choose":
selectPhotos()
}
extractImageText(MenuResult)
}
} else {
// TODO: Get Variable not supported: Assign variable here to 'IfResult'.
}
@input
if @input == "t" {
openApp("com.google.Translate")
stop()
}
detectLanguage(@input)
@detects
if @detects contains "English" {
translate(@input, "ja_JP")
@jpen
translate(@input, "es_ES")
@spen
} else {
if @detects contains "Spanish" {
translate(@input, "")
@ensp
translate(@input, "ja_JP")
@jpsp
} else {
if @detects contains "Japanese" {
translate(@input, "en_US", "Detect Language")
@enjp
translate(@input, "es_ES")
@spjp
} else {
translate(@input, "en_US")
@enot
translate(@input, "ja_JP")
@jpot
translate(@input, "es_ES")
@spot
}
}
}
const Count = count(IfResult1, "Lines")
if Count > 10 {
show(IfResult1)
} else {
// TODO: Get Variable not supported: Assign variable here to 'IfResult1'.
}
menu {
item "copy":
const SplitText = splitText(IfResult1)
const ChosenItem = chooseFromList(SplitText, "what to copy?", false)
setClipboard(ChosenItem)
item "more":
runSelf()
item "done":
}
Åbn i Cherri Playground
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.
Bedømmelser og anmeldelser
Skriv en anmeldelse–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ingen anmeldelser endnu. Vær den første!
Annonce
Mere fra aster
Du vil måske også kunne lide
Annonce