OpenTranslate-beta 1.0.0.4

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package OpenTranslate-beta --version 1.0.0.4
NuGet\Install-Package OpenTranslate-beta -Version 1.0.0.4
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="OpenTranslate-beta" Version="1.0.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OpenTranslate-beta --version 1.0.0.4
#r "nuget: OpenTranslate-beta, 1.0.0.4"
#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 OpenTranslate-beta as a Cake Addin
#addin nuget:?package=OpenTranslate-beta&version=1.0.0.4

// Install OpenTranslate-beta as a Cake Tool
#tool nuget:?package=OpenTranslate-beta&version=1.0.0.4

OpenTranslate

OpenTranslate is powered by an opensource translation engine, giving you great translations. However we do have a 500 character limit per a translation we are currently still working on bulk translations per use. You are also currently limited to 5000 characters per day per ip - we are working on getting rid of all limits. This can be used asynchronously.

Optimizations

We have added better error handling to the package and fixed up some bugs that we found during testing which caused empty json strings to be returned We have also added ocr document translations.

Package Dependencies

Package Version
Newtonsoft.Json 13.0.1
IronOcr 2022.11.10109
IronOcr.MacOs 2022.11.10109

Usage/Examples

GetTranslation(Sentence or Phrase, laguage from, language to);

Languages need to be specified in ISO 639-1 format like below:

using OpenTranslate;

var engine = new OpenTranslateClient();

string json = await engine.GetTranslation("Hello, May the force be with you.", "en", "es");

Results results = JsonSerializer.Deserialize<Results>(json);

Console.Write("Your Translation: " + results.Translation + Environment.NewLine +
"Match Accuracy: " + results.Percentage);

internal class Results
{
  public string Translation {get;set;}
  public string Percentage {get;set;}
  public string LanguageFrom {get;set;}
  public string LanguageTo {get;set;}
}

GetDocumentTraslation(Document Path, isoLanguageFrom, isoLanguageTo)

Languages need to be specified in ISO 639-1 format like below:

using OpenTranslate;

var engine = new OpenTranslateClient();

string json = await engine.GetDocumentTraslation("doc.pdf", "en", "es");

Results results = JsonSerializer.Deserialize<Results>(json);

Console.Write("Your Translation: " + results.Translation + Environment.NewLine +
"Match Accuracy: " + results.Percentage);

internal class Results
{
  public string Translation {get;set;}
  public string MatchPercentage {get;set;}
  public string LanguageFrom {get;set;}
  public string LanguageTo {get;set;}
}

Roadmap

  • Add OCR image translations.(currently we have started development on this.)
  • Add code and performance optimisation.
  • Remove all usage limits to avoid limiting the free opensource product.

License

MIT

Support

For support, email WebsiterzTech@gmail.com.

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.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

This is our third official beta release.
   We have added improved error handling and have added some code optimisation.
   We have also added ocr document translations