dgtl/README.md

21 lines
348 B
Markdown
Raw Normal View History

2023-07-16 15:47:04 +00:00
# D Google Translate
The library is a simple translator based on using an HTTP GET method request in Google Translate.
```d
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;
}
```