File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
commands/apps/terminal-translate Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Dependency: requires translate-shell
4+ # Install with Homebrew: `npm install terminal-translate -g`
5+
6+ # Required parameters:
7+ # @raycast.schemaVersion 1
8+ # @raycast.title Translate
9+ # @raycast.mode fullOutput
10+
11+ # Optional parameters:
12+ # @raycast.icon 📖
13+ # @raycast.argument1 { "type": "text", "placeholder": "Word or Sentence" }
14+ # @raycast.packageName Terminal Translate
15+
16+ # Documentation:
17+ # @raycast.description Translate word or sentence.
18+ # @raycast.author Fatpandac
19+ # @raycast.authorURL https://github.com/Fatpandac
20+
21+ if ! command -v tl & > /dev/null; then
22+ echo " trans command is required (https://github.com/ShanaMaid/terminal-translate)." ;
23+ exit 1;
24+ fi
25+
26+ tl $1
You can’t perform that action at this time.
0 commit comments