# D Google Translate [![license](https://img.shields.io/github/license/AlexanderZhirov/dgt.svg?sort=semver&style=for-the-badge&color=green)](https://www.gnu.org/licenses/old-licenses/gpl-2.0.html) [![main](https://img.shields.io/badge/dynamic/json.svg?label=git.zhirov.kz&style=for-the-badge&url=https://git.zhirov.kz/api/v1/repos/dlang/dgt/tags&query=$[0].name&color=violet&logo=D)](https://git.zhirov.kz/dlang/dgt) [![githab](https://img.shields.io/github/v/tag/AlexanderZhirov/dgt.svg?sort=semver&style=for-the-badge&color=blue&label=github&logo=D)](https://github.com/AlexanderZhirov/dgt) [![dub](https://img.shields.io/dub/v/dgt.svg?sort=semver&style=for-the-badge&color=orange&logo=D)](https://code.dlang.org/packages/dgt) [![linux](https://img.shields.io/badge/Linux-FCC624?style=for-the-badge&logo=linux&logoColor=black)](https://www.linux.org/) The library is a simple translator based on using an HTTP GET method request in Google Translate. ## Quick start ```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; } ``` ## DUB Add a dependency on `"dgt": "~>0.0.1"`