D Google Translate Library
Go to file
Alexander Zhirov ccca19f465 The first stable working release 2023-07-16 18:47:04 +03:00
source The first stable working release 2023-07-16 18:47:04 +03:00
tests The first stable working release 2023-07-16 18:47:04 +03:00
.gitignore The first stable working release 2023-07-16 18:47:04 +03:00
CHANGELOG The first stable working release 2023-07-16 18:47:04 +03:00
LICENSE The first stable working release 2023-07-16 18:47:04 +03:00
README.md The first stable working release 2023-07-16 18:47:04 +03:00
dub.json The first stable working release 2023-07-16 18:47:04 +03:00
dub.selections.json The first stable working release 2023-07-16 18:47:04 +03:00

README.md

D Google Translate

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

import dgt;
import std.stdio;

void main()
{
    auto dgt = new DGT;

    dgt.lang.source.en;
    dgt.lang.target.de;

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

    dgt.translate(text).writeln;
}