OpenTranslate-beta
1.0.0.4
dotnet add package OpenTranslate-beta --version 1.0.0.4
NuGet\Install-Package OpenTranslate-beta -Version 1.0.0.4
<PackageReference Include="OpenTranslate-beta" Version="1.0.0.4" />
paket add OpenTranslate-beta --version 1.0.0.4
#r "nuget: OpenTranslate-beta, 1.0.0.4"
// 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
Support
For support, email WebsiterzTech@gmail.com.
Product | Versions 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. |
-
net7.0
- IronOcr (>= 2022.11.10109)
- IronOcr.MacOs (>= 2022.11.10109)
- Newtonsoft.Json (>= 13.0.1)
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