@@ -16,6 +16,25 @@ export default {
1616 CMD_DES_SHOW_DETAIL : 'Show translated detail information' ,
1717 CMD_DES_SHOW_LANGUAGES : 'Show supported languages' ,
1818
19+ CMD_USAGE_EG : 'Translate "Hello World!" into your language' ,
20+ CMD_USAGE_EG_TO : 'Translate "Hello World!" into Spanish' ,
21+ CMD_USAGE_EG_SHOW :
22+ 'Output more information (Lang Name, Synonym, Polysemy, Sentence, ...)' ,
23+ CMD_USAGE_EG_ABBR : 'Make CLI simple with argument abbreviations' ,
24+ CMD_USAGE_EG_FILE : 'Translate file "./README.md" into your language' ,
25+ CMD_USAGE_EG_STDIN :
26+ 'Translate "Rust-lang Book chapter 01" into your language' ,
27+ CMD_USAGE_EG_HELP :
28+ 'Translate output of "npm --help" into your language, and save it to a file' ,
29+ CMD_USAGE_EG_SLOW :
30+ 'If you have a time-consuming task, use `--stdin-timeout` to protect the CLI' ,
31+ CMD_USAGE_EG_ENGINE : 'Use "microsoft" as translation engine' ,
32+ CMD_USAGE_EG_ENV :
33+ 'Specify the translation engine through env variable "NODE_TRANSLATE_CLI_ENGINE"' ,
34+ CMD_USAGE_EG_TIMEOUT :
35+ 'If you are concerned about your network status, use `--timeout` to protect the CLI' ,
36+ CMD_USAGE_EG_LANGS : 'Show supported languages list' ,
37+
1938 CMD_SPIN_STDIN : 'Loading stdin...' ,
2039 CMD_SPIN_TRANSLATE : 'Waiting translate API...' ,
2140
@@ -24,7 +43,6 @@ export default {
2443 CMD_TYPO_SYNONYM : 'Synonym' ,
2544 CMD_TYPO_POLYSEMY : 'Polysemy' ,
2645 CMD_TYPO_SENTENCE : 'Sentence' ,
27- CMD_TYPO_LANGUAGE : 'Language List' ,
2846
2947 CMD_ERR_MISSING_ARGUMENT :
3048 'Please enter the content that needs to be translated' ,
0 commit comments