提交 cb78fe6a 编写于 作者: a865501259's avatar a865501259

Docs: up

上级 9393ce14
......@@ -51,6 +51,7 @@
"translation.js-fix",
"./config/loggerConfig.js",
"./config/work-options.js",
"./util/diskCache",
"./Fix/fixZhtoEn.js",
"./Fix/lengthEqual.js",
"./Fix/fixFileTooBig.js",
......@@ -58,6 +59,10 @@
"./util/debugMsg.js",
"./typeSetAndGet"
],
"/Users/lizhenyong/Desktop/JSJSJSJSJSJJSJS——project/node/translate-mds/src/util/diskCache.js": [
"diskdb",
"path"
],
"/Users/lizhenyong/Desktop/JSJSJSJSJSJJSJS——project/node/translate-mds/src/Fix/fixZhtoEn.js": [
"zh-to-en-symbol"
],
......@@ -133,6 +138,16 @@
"fs",
"../../src/Fix/lengthEqual.js"
],
"/Users/lizhenyong/Desktop/JSJSJSJSJSJJSJS——project/node/translate-mds/test/disk-cache/disk.js": [
"ava",
"../../src/util/diskCache"
],
"/Users/lizhenyong/Desktop/JSJSJSJSJSJJSJS——project/node/translate-mds/test/logger/debugMgs.test.js": [
"ava",
"../../src/util/debugMsg",
"debug')('mds:tran",
"../../src/config/loggerConfig.js"
],
"/Users/lizhenyong/Desktop/JSJSJSJSJSJJSJS——project/node/translate-mds/test/logger/logger.test.js": [
"ava",
"../../src/config/loggerConfig"
......
......@@ -16,7 +16,6 @@ like
![npm](https://img.shields.io/npm/v/translate-mds.svg)
![GitHub release](https://img.shields.io/github/tag/chinanf-boy/translate-mds.svg)
## life
[help me live , live need money 💰](https://github.com/chinanf-boy/live-need-money)
......@@ -65,7 +64,7 @@ translateMds test.md
## Command line options
```bash
translate [folder/single] md file language to you want
translate [folder/single] md file language to you want
Usage
$ translateMds [folder/file name] [options]
......@@ -83,16 +82,18 @@ translateMds test.md
🌟[high user options]❤️
-D debug
-G google.com : default < false > { cn => com with Google api }
-F force : default < false > { If, translate result is no 100%, force wirte md file }
-M match : default [ ". ", "! "//...] {match this str, merge translate result }
-S skips : default ["... ", "etc. ", "i.e. "] {match this str will, skip merge translate result}
-T types : default ["html", "code"] {pass the md AST type}
--timewait : default: 80 {each fetch api wait time}
--values [path] : default: false {write the original of wait for translate file} [single file])
--translate [path] : default: false {use this file translate} [single file]
--text-glob [pattern] : default: false {text must be match, then be transalte}
--glob [pattern] : default: false {file path must be match, then be transalte}
-C cache : default: false cache in disk
-G google.com : default: false { cn => com with Google api }
-F force : default: false { If, translate result is no 100%, force wirte md file }
-M match : default [ ". ", "! "//...] {match this str, merge translate result }
-S skips : default ["... ", "etc. ", "i.e. "] {match this str will, skip merge translate result }
-T types : default ["html", "code"] {pass the md AST type}
--timewait : default < 80 > {each fetch api wait time}
--values [path] : default: false {write the original of wait for translate file} [single file]
--translate [path] : default: false {use this file translate} [single file]
--text-glob [pattern] : default: false {text must be match, then be transalte}
--cache-name [filename]: default: "translateMds" named the cache file
--glob [pattern] : default: false {file must be match, then be transalte}
--ignore [relative file/folder] : default: false {ignore files/folders string, split with `,` }
```
......@@ -145,7 +146,6 @@ At this time, you can use`-D`Debug /`-F`Force write to file / Adjust unusual cha
- [what-time](https://github.com/chinanf-boy/what-time)
- [zh-to-en-symbol](https://github.com/chinanf-boy/zh-to-en-symbol)
---
Use[`remark`](https://github.com/wooorm/remark)Improve accuracy
......
......@@ -82,6 +82,7 @@ translateMds test.md
🌟[high user options]❤️
-D debug
-C cache : default: false 是否存储结果
-G google.com : default < false > { cn => Google.com 的 api }
-F force : default < false > { 当, 翻译的结果达不到 100%, 强行写入翻译文件 }
-M match : default [ ". ", "! "//...] {match this str, merge translate result }
......@@ -91,6 +92,7 @@ translateMds test.md
--values [path] : default: false {取出原文中需要翻译的文本,放入path文件} [single file])
--translate [path] : default: false {使用此path文件替代请求网络翻译, 可搭配--values使用} [single file]
--text-glob [pattern] : default: false {文本匹配glob模式, 才能被翻译}
--cache-name [filename]: : default: "translateMds" 存储的文件名
--glob [pattern] : default: false {文件匹配glob模式, 才能被翻译}
--ignore [relative file/folder] : default: false {忽略 文件/文件夹 字符串匹配, 可用`,`分隔多路径 }
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册