From 57104d2bfd7e578d69cf0697b78cedb5df4f154e Mon Sep 17 00:00:00 2001 From: kabeep Date: Thu, 9 May 2024 06:39:47 +0800 Subject: [PATCH] Bump node-translate 1.1.1 to 1.1.2 --- README.md | 6 ++++++ README.zh-CN.md | 6 ++++++ package.json | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ba7b034..f523883 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,12 @@ echo "test" | translate -f en -t zh translate "test" --from=en --to=zh ``` +#### Using language name and capitalized correction + +```shell +translate "test" --from="ENGLISH" --to="chinese" +``` + #### Adaptive source language ```shell diff --git a/README.zh-CN.md b/README.zh-CN.md index 320d71b..825327a 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -100,6 +100,12 @@ echo "test" | translate -f en -t zh translate "test" --from=en --to=zh ``` +#### 使用语言名称和大小写修正 + +```shell +translate "test" --from="ENGLISH" --to="chinese" +``` + #### 自适应原文语言 ```shell diff --git a/package.json b/package.json index a53f027..3433ce8 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ }, "dependencies": { "@kabeep/exception": "^1.2.3", - "@kabeep/node-translate": "^1.1.1", + "@kabeep/node-translate": "^1.1.2", "ora": "^8.0.1", "os-locale": "^6.0.2", "yargs": "^17.7.2"