GroupDocs.Translation Cloud API: Englisches to Litauisches Übersetzung mit Curl
GroupDocs.Translation Cloud API ist ein webbasiertes Tool, das Entwicklern ermöglicht, automatische Übersetzungs- und Lokalisierungslösungen in ihre Anwendungen zu integrieren. Mit diesem API können Benutzer Texte und Dokumente von einer Sprache in eine andere übersetzen lassen, ohne dass sie sich um komplexe Algorithmen oder Infrastruktur kümmern müssen. Mit Hilfe von curl können Entwickler einfach HTTP-Anfragen senden, um die Übersetzungsfunktionen des APIs aufzurufen. Zum Beispiel können sie mit einfachen curl-Befehlen Englisch in Litauisch übersetzen lassen und die übersetzten Ergebnisse schnell und einfach in ihre Anwendung integrieren.
// Get your App SID, App Key and Storage Name at https://dashboard.groupdocs.cloud (free registration is required).
public TextResponse TranslateText(Configuration conf)
{
string pair = "en-lt";
string text = "GroupDocs.Translation Cloud API: Englisches to Litauisches Übersetzung mit Curl";
TranslationApi api = new TranslationApi(conf);
TranslateTextRequest request = api.CreateTextRequest(pair, text);
TextResponse response = api.RunTranslationTextTask(request);
return response;
}
# Get your App SID, App Key and Storage Name at https://dashboard.groupdocs.cloud (free registration is required).
curl -X POST "https://api.groupdocs.cloud/v1.0/translation/text" \
-H "Authorization: Bearer TOKEN" \
-H "Content-Type: application/json" \
-d '[{"pair":"en-lt", "text":"GroupDocs.Translation Cloud API: Englisches to Litauisches Übersetzung mit Curl"}]'
# and response
{ "status":"ok", "message":"Text translated successfully", "translation":"....." }
// Get your App SID, App Key and Storage Name at https://dashboard.groupdocs.cloud (free registration is required).
import com.GroupDocs.translate.api.*;
import com.GroupDocs.translate.Configuration;
private static void setUpConfig() throws Exception {
Configuration.setAPP_SID("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX");
Configuration.setAPI_KEY("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
}
static String TranslateText() {
pair = "en-lt";
text = "GroupDocs.Translation Cloud API: Englisches to Litauisches Übersetzung mit Curl";
TextInfo textInfo = new TextInfo(pair, text);
TranslationTextRequest translationTextRequest = new TranslationTextRequest(TextInfo.toString());
TranslationTextResponse translateTextResponse = TranslationApi.TranslateText(translationTextRequest);
return translateTextResponse.translation;
}
# Get your App SID, App Key and Storage Name at https://dashboard.groupdocs.cloud (free registration is required).
from groupdocstranslationcloud.configuration import Configuration
from groupdocstranslationcloud.api.translation_api import TranslationApi
from groupdocstranslationcloud.models.translate_text import TranslateText
from groupdocstranslationcloud.models.translate_document import TranslateDocument
# enter valid apiKey and appSid
configuration = Configuration(apiKey="", appSid="")
api = TranslationApi(configuration)
pair = "en-lt"
text = "GroupDocs.Translation Cloud API: Englisches to Litauisches Übersetzung mit Curl"
translator = TranslateText(pair, text)
response = translator.to_string()
res_text = api.post_translate_text(response)
print(res_text.translation)
Features
Translation nach Litauisch
Mit GroupDocs.Translation Cloud können Sie Texte von Englisch nach Litauisch mithilfe von cURL bequem übersetzen. Sie können eine Anfrage an die Cloud-API senden, um den gewünschten Text zu übersetzen. Darüber hinaus bietet die Cloud verschiedene Funktionen wie die Erkennung der Quellsprache, das Anpassen von Übersetzungsoptionen und das Abrufen von Übersetzungsstatistiken.