deepel icon indicating copy to clipboard operation
deepel copied to clipboard

Unofficial Go client for the DeepL private API

DeepL Go Client

Unofficial Go client for the private API of deepl.com.

Usage

package main

import (
	"fmt"

	"github.com/ravernkoh/deepl"
)

func main() {
	// Instantiate client and configure
	cli := deepl.NewClient()

	// Translate some simple text
	res, _ := cli.Translate([]string{"Hello, world!"}, deepl.English, deepl.German)
	fmt.Println(res[0])
}

Installation

$ go get github.com/ravernkoh/deepl