Skip to content

Repository files navigation

Babello

Description

Babel: the Babel's tower

l: the L of DeepL

o: Oh wow, this is beautiful OR Oh wow, it surprisingly works!

Babello is a 'bello' CLI translator that uses the DeepL API. There is also a Neovim plugin (babello.nvim)!

Requirements

  • Rust
  • A DeepL API Key

Installation

# Clone the repo
git clone https://github.com/utox39/babello.git

# cd to the path
cd path/to/babello

# Build babello
cargo build --release

# Then move it somewhere in your $PATH. Here is an example:
mv ./target/release/babello ~/bin/

Neovim plugin

Take a look at babello.nvim

Usage

DEEPL_API_KEY must be set.

A 'bello' CLI translator via DeepL

Usage: babello [OPTIONS] [TEXT]...

Arguments:
  [TEXT]...  The text to translate

Options:
      --from <FROM>          The language to translate from
      --to <TO>              The language to translate to
      --usage                Get the API usage
      --languages            Get the supported languages list
      --improve              Improve text by correcting spelling and grammar errors
      --generate-hook-warn   Print a git commit-msg hook that warns about spelling/grammar issues
      --generate-hook-block  Print a git commit-msg hook that blocks the commit on spelling/grammar issues
      --json                 Print the translation/improvement as JSON instead of human-readable text
      --tui                  Launch the interactive TUI
  -h, --help                 Print help
  -V, --version              Print version

Roadmap

  • Improve the TUI
  • Make it configurable

Contributing

Please see CONTIBUTING. Thanks!

License

MIT License. See: LICENSE

About

Babello is a 'bello' CLI translator that uses the DeepL API. There is also a Neovim plugin!

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages