Alexander Zhirov 3f9f773311 | ||
---|---|---|
source | ||
tests | ||
.gitignore | ||
CHANGELOG.md | ||
LICENSE | ||
README.md | ||
dub.json | ||
dub.selections.json |
README.md
D Google Translate
The library is a simple translator based on using an HTTP GET method request in Google Translate.
Quick start
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;
}
DUB
Add a dependency on "dgt": "~>0.0.1"