You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set-langs [options] Set source and target languages
37
37
-s, --source <source> Set source language
38
38
-t, --target <target> Set target language
39
-
p <query...> Translate the text using the 'tl p <query...>' directive
39
+
p <query...> Translate the text using the 'mptl p <query...>' directive
40
40
help [command] display help for command
41
41
```
42
42
43
43
## Example
44
44
```
45
-
$ tl set-trl baidu -a 123456 -s abcdefghijklmnopqrstuvwxyz
45
+
$ mptl set-trl baidu -a 123456 -s abcdefghijklmnopqrstuvwxyz
46
46
47
47
Set the application ID and key of Baidu Translation Platform
48
48
49
-
$ tl ls
49
+
$ mptl ls
50
50
51
51
View the list of translation platforms and the currently selected platform
52
52
53
-
$ tl use youdao
54
-
55
-
Use Youdao translation platform for translation
56
-
57
-
$ tl ls langs
53
+
$ mptl ls langs
58
54
59
55
View the currently available source and target language codes
60
56
61
-
$ tl set-langs -s en -t zh
57
+
$ mptl use youdao
58
+
59
+
Use Youdao translation platform for translation
60
+
61
+
$ mptl set-langs -s en -t zh
62
62
63
63
Set the translation source language to English and the target language to Chinese
64
64
65
-
$ tl p hello world
65
+
$ mptl p hello world
66
66
67
-
tl p Keep up with the text that needs to be translated
67
+
mptl p Keep up with the text that needs to be translated
68
68
```
69
69
## Supported Platforms
70
70
@@ -78,7 +78,7 @@ $ tl p hello world
78
78
## Precautions
79
79
80
80
- The translation plug-in itself does not have the ability to translate text, but instead translates by calling the API provided by the translation platform. Currently supported platforms have free translation quotas, which is completely sufficient for most people.
81
-
- Except for Google Translate, all translation platforms need to apply for application ID and key, Please see the specific tutorial: [Translation platform API application tutorial](https://flowus.cn/chiko_mp-tl/share/91538d60-cf6e-48a6-b2b3-bc14eed4f066?code=B8NQGQ).
81
+
- Except for Google Translate, all translation platforms need to apply for application ID and key, Please see the specific tutorial: [Translation platform API application tutorial](https://flowus.cn/chiko_mptl/share/c721cbc9-6537-41e5-99b9-fd6299ec5b01?code=B8NQGQ).
82
82
- Since this plug-in runs in the terminal and there is no plan to provide a server, Google Translate needs to be used through a proxy. If it still does not work after turning on the proxy, please turn on the Tun mode of the proxy.
0 commit comments