Translate XLIFF 1.2 from English to German

Introduction

XLIFF files are widely used in localization field. This tutorial shows how to retrieve the translation to German of a XLIFF 1.2 content where the source language is English.

Pre-requisites

A XLIFF 1.2 file with English source language and empty targets.

Perform translation from English

Insert the XLIFF 1.2 file content in the text area and press the Try it out! button. The translation will be performed by invoking the FREME e-Translation service.

XLIFF file content for processing
Paste here the XLIFF file content that should be processed. This is send as body of the request.


Query string parameter source-language
Specifies the source language for the translation. In this example we set this parameter to "en".

Query string parameter target-language
Specifies the target language for the translation. In this example we set this parameter to "de" (german).

Query string parameter informat
Specifies the format of the input data. In this example we submit a XLIFF 1.2 file so we set this parameter to "application/x-xliff+xml".

Query string parameter outformat
Specifies the format of the data returned by FREME. You can choose between "turtle" and "json-ld" formats.


Response

		
	

cURL Examples

Below you can find an example of a cURL command. Replace translation.xlf with the path of your XLIFF file.

curl -X POST -d@translation.xlf  --header "Content-Type: application/x-xliff+xml" "https://api.freme-project.eu/current/e-translation/tilde?outformat=turtle&source-lang=en&target-lang=de" -v