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 c48005d commit 31ae038
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,32 @@ translate -h
translate -v
```

## 🧙🏽‍♂️ Advanced

#### Using the static accessor `$()` method

```shell
git commit -m "$(translate 'feat: your commit content' -t zh)"
```

![Alt](docs/images/advanced-usage-alpha.png "Using the static accessor method")

#### Using the pipe `|` symbol

```shell
npm info npm description | translate -t zh
```

![Alt](docs/images/advanced-usage-beta.png "Using the pipe | symbol")

#### Using the redirection `>` symbol

```shell
translate "这是一段测试文本。" -t en > usage.txt
```

![Alt](docs/images/advanced-usage-gamma.png "Using the redirection > symbol")

## 🔧 Autocorrect

> `Default` white
Expand Down
26 changes: 26 additions & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,32 @@ translate -h
translate -v
```

## 🧙🏽‍♂️ 进阶用法

#### 使用静态访问器 `$()` 方法

```shell
git commit -m "$(translate 'feat: your commit content' -t zh)"
```

![Alt](docs/images/advanced-usage-alpha.png "Using the static accessor method")

#### 使用管道 `|` 符号

```shell
npm info npm description | translate -t zh
```

![Alt](docs/images/advanced-usage-beta.png "Using the pipe | symbol")

#### 使用重定向 `>` 符号

```shell
translate "这是一段测试文本。" -t en > usage.txt
```

![Alt](docs/images/advanced-usage-gamma.png "Using the redirection > symbol")

## 🔧 自动修正

> `常规` 白色
Expand Down
Binary file added docs/images/advanced-usage-alpha.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/advanced-usage-beta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/advanced-usage-gamma.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 31ae038

Please sign in to comment.