Skip to content

The Deepl Translator API is a language translation API ⚡✨

License

Notifications You must be signed in to change notification settings

mdhachem/DeeplTranslatorAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeeplTranslatorAPI

The Deepl Translator API is a language translation API that allows other computer programs to send texts and documents to DeepL's servers and receive high-quality translations.

Supported Documents Type:

  • Docs (Microsoft Word)
  • PPT (Microsoft PowerPoint)
  • XLSX (Microsoft Excel)
  • CSV
  • PDF
  • XML
  • JSON

Requirements

API authentication key [Pro Account].

Java 11 or later.

Installation

Gradle users

Add this dependency to your project's build file:

not ready yet.

Maven users

Add this dependency to your project's POM:

not ready yet.

Usage

Be careful not to expose your key, for example when sharing source code.

import java.util.Arrays;
import java.util.List;

import com.mdhachem.translator.SourceLanguage;
import com.mdhachem.translator.TargetLanguage;
import com.mdhachem.translator.service.Translator;

public class Main {
    public static void main(String[] args){
       Translator translator = new Translator.Builder().setAuthKey("00e8b6fe-...").build();
		List<String> texts = Arrays.asList("Bonjour", "je peux t'appeler");
		System.out.println(translator.translate(texts,SourceLanguage.FRENCH,TargetLanguage.ENGLISH_AMERICAN)); // [Hello, I can call you]
		System.out.println(translator.translate("mes amis", SourceLanguage.FRENCH, TargetLanguage.ENGLISH_AMERICAN)); // my friends
    }
}

About

The Deepl Translator API is a language translation API ⚡✨

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages