Lionbridge Content API Java SDK

The easiest way to add Lionbridge translation services
to your Java application.

Add The SDK

The Java SDK is deployed to Maven Central meaning you can get up and running
fast with popular Java build tools like Maven and Gradle:




dependencies { compile 'com.lionbridge.content.sdk:liox-content-sdk-java:2.0.3' }

Connect to the Content API

Connecting to the Content API is easy with once you've acquired your API keys. Just create a new ContentAPI instance:

Upload Files

You can easily add files using the addFile method, providing the encoding and path to the file:
LBFile addedFile = api.addFile("text/plain", new File("example.txt"), "en-us");

Create Translations Options

The TranslationOptions class gives you control over things like source language, target languages, the service you want to use, currency and any special instructions you might have:
SourceLanguage sourceLanguage = new SourceLanguage("en-us")

List targetLanguages = new ArrayList<>();
targetLanguages.add(new TargetLanguage("de-de"));
targetLanguages.add(new TargetLanguage("fr-fr"));

TranslationOptions translationOptions = new TranslationOptions(sourceLanguage, targetLanguages);

Create A Project

To create a project call the addProject method and give it a project name, your preferred translation options and a list of file IDs you've previously uploaded:
Project project = api.addProject("My Project", translationOptions, fileIds);

Generate A Quote

You can then generate a quote using the addQuote method with your translation options and any number of projects you've created:
Quote addedQuote = api.addQuote(translationOptions, projects);

Authorize the Quote

Once the quote is ready you can also use the Java SDK to authorize the quote using the authorizeQuote method with the Quote's ID and a Purchase Order number you've previously registered with Lionbridge:
QuoteAuthorization quoteAuthorization = api.authorizeQuote(quoteId, poNumber);

That's Not All...

Many more things are possible - just check the Java SDK Docs for things like:

Add Files By URL

Got a big file? The content API can retrieve very large files from publicly accessible HTTP and FTP sites.

Add Reference Files

Send Lionbridge reference materials such as style guides, glossaries, fonts, and special instructions with your project.

List of Locales and Services

Not sure what languages and services are available for your users? We have APIs that list these options so that your users can select them.

List of Projects and Quotes

List what work has been sent to Lionbridge and check on status.

Get Detailed Information

Get detailed information about quotes, projects, and files that were created in the API.

Download Deliverables

Download deliverables from completed projects.

Reject and Cancel Quotes

Unclutter your shopping cart by rejecting unpurchased quotes. Request cancellation of mistakenly purchased quotes.

Java SDK Docs

If you have more questions beyond this knowledgebase kindly check