Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
茶陵後
Translate Mds
提交
cb78fe6a
T
Translate Mds
项目概览
茶陵後
/
Translate Mds
10 个月 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Translate Mds
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
cb78fe6a
编写于
11月 30, 2018
作者:
a865501259
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Docs: up
上级
9393ce14
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
30 addition
and
13 deletion
+30
-13
NodePathdata.json
NodePathdata.json
+15
-0
README.en.md
README.en.md
+13
-13
README.md
README.md
+2
-0
未找到文件。
NodePathdata.json
浏览文件 @
cb78fe6a
...
...
@@ -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"
...
...
README.en.md
浏览文件 @
cb78fe6a
...
...
@@ -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
...
...
README.md
浏览文件 @
cb78fe6a
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录