-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/dict/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env sh | ||
|
||
# markdown 文档 | ||
nt translate 'content/**/*.md' '!content/(examples|demos)/**/*.md' --engine=extractor --dict ./tools/translator/dict/angular | ||
|
||
# html 文档 | ||
nt translate 'content/**/*.html' '!content/(examples|demos)/**/*.html' --engine=extractor --dict ./tools/translator/dict/angular | ||
|
||
# 导航菜单 | ||
nt translate content/navigation.json --engine=extractor --dict ./tools/translator/dict/angular --jsonProperties=title --jsonProperties=tooltip | ||
|
||
# 社区资源 | ||
nt translate content/marketing/resources.json --engine=extractor --dict ./tools/translator/dict/angular --jsonProperties=title --jsonProperties=desc | ||
|
||
# 帮助文件 | ||
nt translate content/cli-src/help/*.json --engine=extractor --dict ./tools/translator/dict/angular --jsonProperties=description --jsonProperties=shortDescription --jsonProperties=longDescription | ||
|
||
# 源码 | ||
nt translate '../packages/**/*.ts' '!../packages/**/*.d.ts' '!../packages/**/*_spec.ts' '!../packages/**/*.spec.ts' -et internal -et nodoc --engine=extractor --dict ./tools/translator/dict/angular |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env sh | ||
|
||
# markdown 文档 | ||
nt translate '!content/(examples|demos)/**/*.md' --engine=normalizer | ||
|
||
# html 文档 | ||
nt translate '!content/(examples|demos)/**/*.html' --engine=normalizer | ||
|
||
# 导航菜单 | ||
nt translate content/navigation.json --jsonProperties=title --jsonProperties=tooltip --engine=normalizer | ||
|
||
# 社区资源 | ||
nt translate content/marketing/resources.json --jsonProperties=title --jsonProperties=desc --engine=normalizer | ||
|
||
# 帮助文件 | ||
nt translate content/cli/help/**/*.json --jsonProperties=description --jsonProperties=shortDescription --jsonProperties=longDescription --engine=normalizer | ||
|
||
# 源码 | ||
nt translate '../packages/**/!(*.d|*.spec|*_spec).ts' -et internal -et nodoc --engine=normalizer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env sh | ||
|
||
# markdown 文档 | ||
nt translate '!content/(examples|demos)/**/*.md' --engine=dict --dict ./tools/translator/dict/angular | ||
|
||
# html 文档 | ||
nt translate '!content/(examples|demos)/**/*.html' --engine=dict --dict ./tools/translator/dict/angular | ||
|
||
# 导航菜单 | ||
nt translate content/navigation.json --jsonProperties=title --jsonProperties=tooltip --engine=dict --dict ./tools/translator/dict/angular | ||
|
||
# 社区资源 | ||
nt translate content/marketing/resources.json --jsonProperties=title --jsonProperties=desc --engine=dict --dict ./tools/translator/dict/angular | ||
|
||
# 帮助文件 | ||
nt translate content/cli/help/**/*.json --jsonProperties=description --jsonProperties=shortDescription --jsonProperties=longDescription --engine=dict --dict ./tools/translator/dict/angular | ||
|
||
# 源码 | ||
nt translate '../packages/**/!(*.d|*.spec|*_spec).ts' -et internal -et nodoc --engine=dict --dict ./tools/translator/dict/angular |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
|
||
# 翻译字典 | ||
nt translate ./tools/translator/dict/angular/**/*.dict.md --engine=google |