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
Copy file name to clipboardExpand all lines: README_EN.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,13 +15,13 @@
15
15
## Install
16
16
17
17
```
18
-
npm install -g mptl
18
+
npm install -g tlm
19
19
```
20
20
21
21
## Usage
22
22
23
23
```
24
-
Usage: mptl command [options]
24
+
Usage: tlm command [options]
25
25
26
26
Options:
27
27
-v, --version Output the current version
@@ -36,35 +36,35 @@ Commands:
36
36
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 'mptl p <query...>' directive
39
+
p <query...> Translate the text using the 'tlm p <query...>' directive
40
40
help [command] display help for command
41
41
```
42
42
43
43
## Example
44
44
```
45
-
$ mptl set-trl baidu -a 123456 -s abcdefghijklmnopqrstuvwxyz
45
+
$ tlm set-trl baidu -a 123456 -s abcdefghijklmnopqrstuvwxyz
46
46
47
47
Set the application ID and key of Baidu Translation Platform
48
48
49
-
$ mptl ls
49
+
$ tlm ls
50
50
51
51
View the list of translation platforms and the currently selected platform
52
52
53
-
$ mptl ls langs
53
+
$ tlm ls langs
54
54
55
55
View the currently available source and target language codes
56
56
57
-
$ mptl use youdao
57
+
$ tlm use youdao
58
58
59
59
Use Youdao translation platform for translation
60
60
61
-
$ mptl set-langs -s en -t zh
61
+
$ tlm 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
-
$ mptl p hello world
65
+
$ tlm p hello world
66
66
67
-
mptl p Keep up with the text that needs to be translated
67
+
tlm p Keep up with the text that needs to be translated
68
68
```
69
69
## Supported Platforms
70
70
@@ -78,7 +78,7 @@ $ mptl 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_mptl/share/c721cbc9-6537-41e5-99b9-fd6299ec5b01?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_tlm/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