LingvanexMT 1.0.2

dotnet add package LingvanexMT --version 1.0.2                
NuGet\Install-Package LingvanexMT -Version 1.0.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LingvanexMT" Version="1.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LingvanexMT --version 1.0.2                
#r "nuget: LingvanexMT, 1.0.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install LingvanexMT as a Cake Addin
#addin nuget:?package=LingvanexMT&version=1.0.2

// Install LingvanexMT as a Cake Tool
#tool nuget:?package=LingvanexMT&version=1.0.2                

Lingvanex API

Discover the Power of Lingvanex Translator Service

Unlock the potential of your applications with Lingvanex Translator, a cutting-edge cloud-based neural machine translation service. Compatible with any operating system, Lingvanex Translator enables the creation of intelligent, multi-lingual solutions for all supported languages.

With Lingvanex, you can effortlessly translate both text and HTML pages, enhancing your global reach and communication capabilities. Explore the capabilities of the Lingvanex Cloud API and learn more about our Secure On-Premise Machine Translation.

How to get the authentication key

Before using the API you need to create the account and then generate the API key at the bottom of the page. You must use this authorization key to authorize requests.

Installation

You can install the library:

dotnet add package RestSharp
nuget install package

Getting the list of languages

To retrieve the list of languages, perform a GET request with the authentication key as follows:

using RestSharp;


var options = new RestClientOptions("https://api-b2b.backenster.com/b1/api/v3/getLanguages?platform=api&code=en_GB");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("accept", "application/json");
var response = await client.GetAsync(request);

Console.WriteLine("{0}", response.Content);

Options:

  • url: https://api-b2b.backenster.com/b1/api/v3/getLanguages
  • platform: api
  • Authorization: The key must be obtained in advance
  • code: the language code in the format “language code_code of the country”, which is used to display the names of the languages. The language code is represented only in lowercase letters, the country code only in uppercase letters (example en_GB, es_ES, ru_RU etc). If this option is not present, then English is used by default.

Translate

This POST method translates text and HTML single string or arrays with the authentication key. Also it performs transliteration, language auto detection.

using RestSharp;

var options = new RestClientOptions("https://api-b2b.backenster.com/b1/api/v3/translate");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("accept", "application/json");
request.AddHeader("content-type", "application/json");
var response = await client.PostAsync(request);

Console.WriteLine("{0}", response.Content);

Options:

  • url: https://api-b2b.backenster.com/b1/api/v3/translate
  • platform: api
  • Authorization: The key must be obtained in advance
  • from: the language code in the format “language code_code of the country” from which the text is translated. The language code is represented only in lowercase letters, the country code only in uppercase letters (example en_GB, es_ES, ru_RU and etc.). If this parameter is not present, the auto-detect language mode is enabled.
  • to: language code in the format “language code_code of the country” to which the text is translated (required)
  • data: data for translation.
  • translateMode: Describe the input text format. Possible value is "html" for translating and preserving html structure. If value is not specified or is other than "html" than plain text is translating.
  • enableTransliteration: If true response includes sourceTransliteration and targetTransliteration fields.

Issues

If you are having problems using the library, please contact us.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 136 8/14/2024
1.0.1 123 8/14/2024
1.0.0 82 7/29/2024

Первый выпуск