gpt-po 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -7,7 +7,7 @@ Read in other languages: English | [简体中文](./README_zh-CN.md)
7
7
  ## Installation
8
8
 
9
9
  ```
10
- npm install openai
10
+ npm install gpt-po
11
11
  ```
12
12
 
13
13
  Set `OPENAI_API_KEY` before using this tool.
@@ -16,10 +16,10 @@ Set `OPENAI_API_KEY` before using this tool.
16
16
 
17
17
  ## Usage Scenarios
18
18
 
19
- - `gpt-po sync --po <file> --pot <file>` to update po files based on pot files. First update the po file and then translate it.
20
- - `gpt-po --po <file>` to translate specified po files to a designated target language. By default, the target language is Simplified Chinese.
21
- - `gpt-po userdict` to modify or view user dictionaries
22
- - `gpt-po systemprompt` to modify or view system prompts, if you are not sure how to use it, you can leave it alone
19
+ - `gpt-po sync --po <file> --pot <file>` Update the po file based on the pot file, while preserving the original translations.
20
+ - `gpt-po --po <file>` Translate specified po files to a designated target language. By default, the target language is Simplified Chinese.
21
+ - `gpt-po userdict` Modify or view user dictionaries
22
+ - `gpt-po systemprompt` Modify or view system prompts, if you are not sure how to use it, you can leave it alone
23
23
 
24
24
  ```
25
25
  Usage: gpt-po [command] [options]
package/README_zh-CN.md CHANGED
@@ -7,7 +7,7 @@ gettext(po)文件翻译工具,支持自定义系统提示词和用户字典,
7
7
  ## 安装
8
8
 
9
9
  ```
10
- npm install openai
10
+ npm install gpt-po
11
11
  ```
12
12
 
13
13
  使用此工具前先设置 `OPENAI_API_KEY`,Windows中使用 `set OPENAI_API_KEY=<key>`, Linux中 `export OPENAI_API_KEY=<key>`
@@ -16,7 +16,7 @@ npm install openai
16
16
 
17
17
  ## 常见用法
18
18
 
19
- - `gpt-po sync --po <file> --pot <file>` 根据pot文件更新po文件,先更新po,再进行翻译
19
+ - `gpt-po sync --po <file> --pot <file>` 根据pot文件更新po文件,保留原有翻译
20
20
  - `gpt-po --po <file>` 翻译指定的po文件到指定的目标语言,默认目标语言是简体中文
21
21
  - `gpt-po userdict` 修改或查看用户字典
22
22
  - `gpt-po systemprompt` 修改或查看系统提示词,如果你不确定如何使用,可以不用修改
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gpt-po",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "command tool for translate po files by gpt",
5
5
  "main": "lib/src/index.js",
6
6
  "bin": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gpt-po",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "command tool for translate po files by gpt",
5
5
  "main": "lib/src/index.js",
6
6
  "bin": {