Skip to content

translate

by official

text-processing

Translate text between languages using AI

translation localization text
# translate

Translate text between languages using AI.

## Usage

```bash
translate --from auto --to en --tone neutral < input.txt
```

## Arguments

- `--from`: Source language (e.g., `en`, `es`, `fr`) or `auto`.
- `--to`: Target language (e.g., `en`, `es`, `fr`).
- `--tone`: Translation tone: `neutral`, `formal`, `casual`.

## Examples

```bash
echo "Hola mundo" | translate --from es --to en --tone formal
```