golyglot

command module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2022 License: MIT Imports: 2 Imported by: 0

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, either via a Go client library or CLI.

Install

Go client

go get github.com/schweller/golyglot/api

Usage


// 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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL