TheMulti0.EasyTranslate 1.5.1

Easily translate and detect with no hassle

Install-Package TheMulti0.EasyTranslate -Version 1.5.1
dotnet add package TheMulti0.EasyTranslate --version 1.5.1
<PackageReference Include="TheMulti0.EasyTranslate" Version="1.5.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TheMulti0.EasyTranslate --version 1.5.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Getting started

EasyTranslate has only one translator one, it's called GoogleTranslator which uses the classic Google Translate webpage.
So the first thing you have got to do is to create that translator.

ITranslator translator = new GoogleTranslator();

Now if you want to asynchronously translate a word, you've got to create a new TranslationSequence that its 'sequence' property is the sequence that you desire to translate, and specify the language you want to translate to:

Task<TranslationSequence> result = await translator.Translate(new TranslationSequence("Bonjour"), TranslateLanguages.English);

Let's say you want to detect a word / sentences' language, you've got to create a new TranslationSequence, specify your word.
After that, the detect method should return you a TranslationSequence which includes your word, and it's (detected) language!

Task<TranslationSequence> result  = await translator.Detect(new TranslationSequence("Hello there"));

More

I recommend you all read the full documentation in the repository wiki.
So that's it! Hope you have fun using my package, and please contact me if you find any issue / suggestion!

Getting started

EasyTranslate has only one translator one, it's called GoogleTranslator which uses the classic Google Translate webpage.
So the first thing you have got to do is to create that translator.

ITranslator translator = new GoogleTranslator();

Now if you want to asynchronously translate a word, you've got to create a new TranslationSequence that its 'sequence' property is the sequence that you desire to translate, and specify the language you want to translate to:

Task<TranslationSequence> result = await translator.Translate(new TranslationSequence("Bonjour"), TranslateLanguages.English);

Let's say you want to detect a word / sentences' language, you've got to create a new TranslationSequence, specify your word.
After that, the detect method should return you a TranslationSequence which includes your word, and it's (detected) language!

Task<TranslationSequence> result  = await translator.Detect(new TranslationSequence("Hello there"));

More

I recommend you all read the full documentation in the repository wiki.
So that's it! Hope you have fun using my package, and please contact me if you find any issue / suggestion!

Release Notes

Changed names

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.5.1 269 8/31/2018
1.5.0 131 8/31/2018
1.0.3 210 6/2/2018
1.0.2 186 6/1/2018
1.0.1 192 6/1/2018
1.0.0 247 6/1/2018
0.3.0-beta 263 2/28/2018
0.2.0-beta 339 12/3/2017
0.1.0-beta 366 12/2/2017