Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kabeep committed May 9, 2024
1 parent 011bf11 commit 4f3bc0d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 28 deletions.
30 changes: 12 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,6 @@ options:
-h, --help Show help info [boolean]
```

<div align="center">

<img width="814" src="docs/images/i18n.png" alt="logo">

i18n

</div>

## 🪄 Examples

#### Using stdin
Expand Down Expand Up @@ -199,27 +191,29 @@ translate -v
>
> `Detect Spelling` red
<div align="center">

<img width="600" src="docs/images/autocorrect.png" alt="logo">

</div>
![Alt](docs/images/autocorrect.png "Color Scheme")

## 🐢 Network anomaly

> When the network is abnormal, the terminal will change as shown in the figure below
> (they actually come from the same line).
<div align="center">

<img width="600" src="docs/images/slowly-network.png" alt="logo">

</div>
![Alt](docs/images/slowly-network.png "Stdout in Terminal")

## ⌨️ Automatic line wrapping

> When a single line of content is too long, the terminal will automatically wrap the line after the title.
![Alt](docs/images/newline.png "Overlong text")

## 🌐 i18n

Contribute your language via Pull Request
in [locale](https://github.com/kabeep/node-translate-cli/tree/master/src/locale/index.ts) are welcome, or notify me
via [Issues](https://github.com/kabeep/node-translate-cli/issues) for handling.

![Alt](docs/images/i18n.png "Locale from OS")

## 🔗 Related

- [node-translate](https://github.com/kabeep/node-translate) - 🦜 A powerful, secure and feature-rich api via Google
Expand Down
19 changes: 9 additions & 10 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,26 +192,25 @@ translate -v
>
> `拼写错误` 红色
<div align="center">

<img width="600" src="docs/images/autocorrect.png" alt="logo">

</div>
![Alt](docs/images/autocorrect.png "Color Scheme")

## 🐢 网络异常

> 网络异常时,终端会发生下图中的变化(它们实际来自同一行内容)。
<div align="center">

<img width="600" src="docs/images/slowly-network.png" alt="logo">

</div>
![Alt](docs/images/slowly-network.png "Stdout in Terminal")

## ⌨️ 自动换行

> 当单行内容过长时,终端会在标题后自动换行。
## 🌐 国际化

欢迎通过 PR 在 [locale](https://github.com/kabeep/node-translate-cli/tree/master/src/locale/index.ts) 文件中贡献你的母语,
或者通过 [Issues](https://github.com/kabeep/node-translate-cli/issues) 通知我处理。

![Alt](docs/images/i18n.png "Locale from OS")

## 🔗 关联库

- [node-translate](https://github.com/kabeep/node-translate) - 🦜 一个强大、安全且功能丰富的 API,通过 Google 翻译。
Expand Down
Binary file added docs/images/newline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4f3bc0d

Please sign in to comment.