Skip to content
This repository was archived by the owner on Mar 22, 2020. It is now read-only.

Commit 6f77fba

Browse files
committed
minor
1 parent 6ccc87e commit 6f77fba

2 files changed

Lines changed: 29 additions & 17 deletions

File tree

Readme.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Translation percentage calculator
2+
3+
Checks out / updates repos listed at https://github.com/iliakan/javascript-tutorial-en.
4+
5+
For each repo, compares it vs en version.
6+
7+
The comparison is as follows (`countTranslation.js`):
8+
9+
1. For each `.md` file in the en version.
10+
2. If there exists the same file and it's different enough (jsdiff), it's considered translated.
11+
3. Then translated count / total files count = percentage.
12+

ecosystem.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
{
22
"apps": [
33
{
4-
"name": "javascript-tutorial-translate-hook",
5-
"script": "bin/server.js",
6-
"instances": "1",
7-
"node_args": "",
8-
"exec_mode": "cluster_mode",
4+
"name": "javascript-tutorial-translate-hook",
5+
"script": "bin/server.js",
6+
"instances": "1",
7+
"node_args": "",
8+
"exec_mode": "cluster_mode",
99
"max_memory_restart": "2G",
10-
"kill_timeout": 5000,
11-
"wait_ready": true,
12-
"log_file": "/var/log/node/javascript.log",
13-
"error_file": "/var/log/node/javascript-err.log",
14-
"out_file": "/var/log/node/javascript-out.log",
15-
"cwd": "/js/javascript-tutorial-translate-hook",
16-
"env": {
17-
"HOST": "127.0.0.1",
18-
"PORT": "3000",
10+
"kill_timeout": 5000,
11+
"wait_ready": true,
12+
"log_file": "/var/log/node/javascript.log",
13+
"error_file": "/var/log/node/javascript-err.log",
14+
"out_file": "/var/log/node/javascript-out.log",
15+
"cwd": "/js/javascript-tutorial-translate-hook",
16+
"env": {
17+
"HOST": "::",
18+
"PORT": "80",
1919
"PM2_GRACEFUL_LISTEN_TIMEOUT": 5000,
20-
"PM2_GRACEFUL_TIMEOUT": 5000,
21-
"ASSET_VERSIONING": "file",
22-
"NODE_ENV": "production"
20+
"PM2_GRACEFUL_TIMEOUT": 5000,
21+
"ASSET_VERSIONING": "file",
22+
"NODE_ENV": "production"
2323
}
2424
}
2525
]

0 commit comments

Comments
 (0)