BoTech.ApiClient.LibreTranslate 1.1.0

dotnet add package BoTech.ApiClient.LibreTranslate --version 1.1.0
                    
NuGet\Install-Package BoTech.ApiClient.LibreTranslate -Version 1.1.0
                    
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="BoTech.ApiClient.LibreTranslate" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BoTech.ApiClient.LibreTranslate" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="BoTech.ApiClient.LibreTranslate" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BoTech.ApiClient.LibreTranslate --version 1.1.0
                    
#r "nuget: BoTech.ApiClient.LibreTranslate, 1.1.0"
                    
#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.
#:package BoTech.ApiClient.LibreTranslate@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BoTech.ApiClient.LibreTranslate&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=BoTech.ApiClient.LibreTranslate&version=1.1.0
                    
Install as a Cake Tool

BoTech Logo

BoTech.ApiClient.LibreTranslate

How to use?

1. Install the package:

dotnet add package BoTech.ApiClient.LibreTranslate

2. Init the Client:

  • self hosted or using official server:
  • Here is the code for a self hosted server:
TranslatorClient _translatorClient = TranslatorClient.CreateClientUsingSelfHostingServer("https://translate.botech.dev");

3. Request any endpoint:

Supported languages:
List<SupportedLanguageResult>? supportedLanguages = await _translatorClient.GetSupportedLanguages();
Detect language:
List<DetectedLanguageResult>? detectedLanguages = await _translatorClient.DetectLanguage(new DetectLanguageDto()
            {
                TextToDetectTheLanguageFor = "Hallo welt. Dies ist ein text in deustcher Sprache."
            });
Translate any string:
TranslationResult? result = await _translatorClient.Translate(new TranslateDto
{
    TextToTranslate = "Hallo welt, wie geht es euch?",
    SourceLanguageCode = "auto", // or the language code
    TargetLanguageCode = "en",
    FormatOfTextToTranslate = TextFormat.text,
    CountOfAlternativeTranslations = 3
});

Sponsor BoTech-Development

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.1.0 45 9/30/2026