gpt-po 1.0.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Translation tool for gettext (po) files that supports custom system prompts and user dictionaries. It also supports translating specified po files to a designated target language and updating po files based on pot files.
4
4
 
5
- Read in other languages: English | [简体中文](./Readme_zh-CN.md)
5
+ Read in other languages: English | [简体中文](./README_zh-CN.md)
6
6
 
7
7
  ## Installation
8
8
 
@@ -0,0 +1,55 @@
1
+ # PO文件CHATGPT翻译工具
2
+
3
+ gettext(po)文件翻译工具,支持自定义系统提示词和用户字典,支持翻译指定的po文件到指定的目标语言,支持根据pot文件更新po文件。
4
+
5
+ 使用其他语言阅读:[English](./Readme.md) | 简体中文
6
+
7
+ ## 安装
8
+
9
+ ```
10
+ npm install openai
11
+ ```
12
+
13
+ 使用此工具前先设置 `OPENAI_API_KEY`,Windows中使用 `set OPENAI_API_KEY=<key>`, Linux中 `export OPENAI_API_KEY=<key>`
14
+
15
+ **建议使用付费的OpenAI API以提高翻译速度,免费的OpenAI API速度较慢(一分钟3条),且有使用限制。**
16
+
17
+ ## 常见用法
18
+
19
+ - `gpt-po sync --po <file> --pot <file>` 根据pot文件更新po文件,先更新po,再进行翻译
20
+ - `gpt-po --po <file>` 翻译指定的po文件到指定的目标语言,默认目标语言是简体中文
21
+ - `gpt-po userdict` 修改或查看用户字典
22
+ - `gpt-po systemprompt` 修改或查看系统提示词,如果你不确定如何使用,可以不用修改
23
+
24
+ ```
25
+ Usage: gpt-po [command] [options]
26
+
27
+ command tool for translate po files by gpt
28
+
29
+ Options:
30
+ -V, --version output the version number
31
+ -h, --help display help for command
32
+
33
+ Commands:
34
+ translate [options] translate po file (default command)
35
+ sync [options] update po from pot file
36
+ systemprompt open/edit system prompt
37
+ userdict open/edit user dictionary
38
+ help [command] display help for command
39
+ ```
40
+
41
+ ```
42
+ Usage: gpt-po [options]
43
+
44
+ translate po file (default command)
45
+
46
+ Options:
47
+ -k, --key <key> openai api key (env: OPENAI_API_KEY)
48
+ --host <host> openai api host (env: OPENAI_API_HOST)
49
+ --model <model> openai model (choices: "gpt-4", "gpt-4-0314", "gpt-4-32k", "gpt-4-32k-0314", "gpt-3.5-turbo", "gpt-3.5-turbo-0301",
50
+ default: "gpt-3.5-turbo")
51
+ --po <file> po file path
52
+ -l, --lang <lang> target language (default: "simplified chinese")
53
+ -o, --output <file> output file path, overwirte po file by default
54
+ -h, --help display help for command
55
+ ```
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gpt-po",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "command tool for translate po files by gpt",
5
5
  "main": "lib/src/index.js",
6
6
  "bin": {
@@ -24,9 +24,6 @@
24
24
  "bugs": {
25
25
  "url": "https://github.com/ryanhex53/gpt-po/issues"
26
26
  },
27
- "files": [
28
- "lib/**/*"
29
- ],
30
27
  "homepage": "https://github.com/ryanhex53/gpt-po#readme",
31
28
  "keywords": [
32
29
  "gettext",
package/lib/src/utils.js CHANGED
@@ -54,7 +54,7 @@ function printProgress(progress, total, extra) {
54
54
  const dots = Array(20 - Math.floor(percent / 5))
55
55
  .fill("░")
56
56
  .join("");
57
- process.stdout.write(`\r${bar}${dots} ${percent}% ${extra || ""}`);
57
+ process.stdout.write(`\r${bar}${dots} ${percent}% ${progress}/${total} ${extra || ""}`);
58
58
  }
59
59
  exports.printProgress = printProgress;
60
60
  //# sourceMappingURL=utils.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gpt-po",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "command tool for translate po files by gpt",
5
5
  "main": "lib/src/index.js",
6
6
  "bin": {
@@ -24,9 +24,6 @@
24
24
  "bugs": {
25
25
  "url": "https://github.com/ryanhex53/gpt-po/issues"
26
26
  },
27
- "files": [
28
- "lib/**/*"
29
- ],
30
27
  "homepage": "https://github.com/ryanhex53/gpt-po#readme",
31
28
  "keywords": [
32
29
  "gettext",
@@ -55,4 +52,4 @@
55
52
  "engines": {
56
53
  "node": ">=12.0.0"
57
54
  }
58
- }
55
+ }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,yCAA4C;AAC5C,2BAA6B;AAC7B,+BAA4B;AAC5B,uCAAuC;AACvC,iCAA8B;AAC9B,2CAA0C;AAC1C,mCAAiE;AAEjE,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;AAE9B,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;AAEzE,OAAO;KACJ,OAAO,CAAC,WAAW,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;KACzC,WAAW,CAAC,qCAAqC,CAAC;KAClD,SAAS,CAAC,IAAI,kBAAM,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;KAChF,SAAS,CAAC,IAAI,kBAAM,CAAC,eAAe,EAAE,iBAAiB,CAAC,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;KAChF,SAAS,CACR,IAAI,kBAAM,CAAC,iBAAiB,EAAE,cAAc,CAAC;KAC1C,OAAO,CAAC,eAAe,CAAC;KACxB,OAAO,CAAC;IACP,OAAO;IACP,YAAY;IACZ,WAAW;IACX,gBAAgB;IAChB,eAAe;IACf,oBAAoB;CACrB,CAAC,CACL;KACA,cAAc,CAAC,aAAa,EAAE,cAAc,CAAC;KAC7C,MAAM,CAAC,uBAAuB,EAAE,iBAAiB,EAAE,SAAS,CAAC;KAC7D,cAAc,CAAC,mBAAmB,EAAE,iBAAiB,EAAE,oBAAoB,CAAC;KAC5E,MAAM,CAAC,qBAAqB,EAAE,gDAAgD,CAAC;KAC/E,MAAM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