Skip to content

C# Library to translate small texts via DeepL using RestSharp

License

Notifications You must be signed in to change notification settings

Scytex/DeeplAPI-Csharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

DeepL-API-Csharp

C# Library to translate small texts via DeepL using RestSharp

Usage

string translatedText = DeeplRequest.CreateRequestSimple("Hallo", Language.German, Language.Italian);
//Result "ciao"
DeeplAnswer deeplAnswer = DeeplRequest.CreateRequest("Hallo", Language.German, Language.Italian);
string secondVariantOfTranslation = deeplAnswer.result.translations[0].beams[1].postprocessed_sentence;
//Result "saluto"

Methods

CreateRequest(string text, string sourceLanguage, string targetLanguage)

Returns a DeeplAnswer which can be used like an JSON object

CreateRequestSimple(string text, string sourceLanguage, string targetLanguage)

Returns the result as simple string

Main()

Debugging method, which starts an example in the console

About

C# Library to translate small texts via DeepL using RestSharp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages