D Google Translate Library
Go to file
Alexander Zhirov 6e3aa3f51f The first stable working release 2023-07-16 19:22:15 +03:00
source The first stable working release 2023-07-16 19:22:15 +03:00
tests The first stable working release 2023-07-16 19:22:15 +03:00
.gitignore The first stable working release 2023-07-16 19:22:15 +03:00
CHANGELOG.md The first stable working release 2023-07-16 19:22:15 +03:00
LICENSE The first stable working release 2023-07-16 19:22:15 +03:00
README.md The first stable working release 2023-07-16 19:22:15 +03:00
dub.json The first stable working release 2023-07-16 19:22:15 +03:00
dub.selections.json The first stable working release 2023-07-16 19:22:15 +03:00

README.md

D Google Translate Library

license main githab dub linux

The library is a simple translator based on using an HTTP GET method request in Google Translate.

Quick start

import dgtl;
import std.stdio;

void main()
{
    auto dgtl = new DGTL;

    dgtl.lang.source.en;
    dgtl.lang.target.de;

    string text = "Text intended for translation into German";

    dgtl.translate(text).writeln;
}

DUB

Add a dependency on "dgtl": "~>0.0.1"