Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/schweller/golyglot

Unofficial CLI and Go bindings for DeepL API.
https://github.com/schweller/golyglot

api bindings cli client golang

Last synced: 10 days ago
JSON representation

Unofficial CLI and Go bindings for DeepL API.

Awesome Lists containing this project

README

        

# golyglot

**Please note**: this is an unoficial repository and not mantained by DeepL. It contains an unoficial CLI tool and an API client for Go.

---

golyglot is a toolbelt for the [DeepL API](https://www.deepl.com/docs-api), either via a Go client library or CLI.

## Install

### Go client

`go get github.com/schweller/golyglot/api`

## Usage

```go

// Generate a config
config := golyglot.DefaultConfig()

// DeepL client
client := golyglot.NewClient(config)

// Instance a list of sentences
var sentences []string

sentences = append(sentence, "Hello world!")

resp, err := client.Translate().PostTranslations(sentences, "IT")
```

## Roadmap

- Support document upload
- Support glossary management
- Proper documentation
- CLI output:
- Distinguish layers
- Pretty print