GithubHelp home page GithubHelp logo

pr0tectedv0id / gengo-dotnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cryovat/gengo-dotnet

0.0 2.0 0.0 1.04 MB

Unofficial .NET library for Gengo API

License: MIT License

PowerShell 7.06% C# 92.94%

gengo-dotnet's Introduction

Winterday.External.Gengo

A .NET library for interfacing with the Gengo API for translation with decent unit test coverage.

  • License: MIT
  • Contributors: See list
  • Stability: Provisional
  • Dependencies: Newtonsoft.Json
  • Supported platforms: .NET 4.5 (Mono to come)
  • Gengo API version: V2

Nuget

The library is finally available on NuGet! Install through Manage Nuget Packages in Visual Studio or the following command in the package manger console:

PM> Install-Package gengo-dotnet

Sample usage

// Client initialization
var client = new GengoClient(
    Settings.Default.PrivateKey,
    Settings.Default.PublicKey,
    ClientMode.Production);
        
// Submit a text for translation
var confirmation = await _client.Jobs.Submit(
    true,  // Require same translator on all jobs
    false, // Do not allow translator change
    new Job()
    {
        Slug = "Sample job",
        Body = "My hovercraft is full of eels",
        SourceLanguage = "en",
        TargetLanguage = "ja",
    });
    
// Submit a file for translation
var confirmation = await _client.Service.GetQuoteForFiles(
    new FileJob(@"c:\files\an_anthology_of_eels.txt")
    {
        Slug = "Sample job",
        SourceLanguage = "en",
        TargetLanguage = "ja",
    });

// Get reviewable jobs
var reviewable = await _client.Jobs.GetRecentJobs(
    status: TranslationStatus.Reviewable,
    afterDateTime: lastMonday,
    maxCount: 40);

Supported methods

See http://developers.gengo.com/ for API overview/documentation

Todo

  • Refactor out some redundancy
  • Inclue StyleCop in build process and get rid of any errors

gengo-dotnet's People

Contributors

cryovat avatar arzul avatar kevinkuszyk avatar

Watchers

James Cloos avatar Thomas Donnelly avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.