All Projects → nanek → mstranslator

nanek / mstranslator

Licence: MIT license
DEPRECATED: Microsoft Translator API module for node.js

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to mstranslator

OSM-Completionist
⛔️ DEPRECATED iOS companion app for OpenStreetMap that allows contributors to complete missing information
Stars: ✭ 17 (-79.01%)
Mutual labels:  archived, obselete
picosdk-python-examples
DEPRECATED - An example Python application and examples for PicoScope® oscilloscope products.
Stars: ✭ 21 (-74.07%)
Mutual labels:  archived, obselete
react-virtual-keyboard
Use jQuery Virtual Keyboard in react.js
Stars: ✭ 44 (-45.68%)
Mutual labels:  archived, obselete
contentstats
DEPRECATED – See how many entries have been created for channels and structures in your Craft CMS website.
Stars: ✭ 29 (-64.2%)
Mutual labels:  archived, obselete
cliff-effects
Cliff effects guidance prototype (archived)
Stars: ✭ 30 (-62.96%)
Mutual labels:  archived
code-gov-style
Deprecated - Style for code.gov including buttons, banners, and cards
Stars: ✭ 12 (-85.19%)
Mutual labels:  archived
Angular2 Adminlte
DEPRECATED An Angular 4 version of the AdminLTE theme
Stars: ✭ 239 (+195.06%)
Mutual labels:  archived
Commoncrawl Crawler
The Common Crawl Crawler Engine and Related MapReduce code (2008-2012)
Stars: ✭ 201 (+148.15%)
Mutual labels:  archived
ref-eRp-FD-Server
ARCHIVED - This project acts as reference implementation of main aspects of an e-prescription server designed by gematik.
Stars: ✭ 41 (-49.38%)
Mutual labels:  archived
cartesian ros control
DEPRECATED: A set of packages to bring Cartesian control functionality to the ROS-control framework.
Stars: ✭ 33 (-59.26%)
Mutual labels:  archived
XpringKit
XpringKit provides a Swift SDK for interacting with Xpring Protocols (XRP/PayID/ILP). This library is deprecated.
Stars: ✭ 23 (-71.6%)
Mutual labels:  archived
google-pacman
Code of Google.com Homepage on the PAC-MAN's 30th Birthday!
Stars: ✭ 37 (-54.32%)
Mutual labels:  archived
athenz-client-sidecar
Moved to https://github.com/AthenZ/athenz-client-sidecar
Stars: ✭ 14 (-82.72%)
Mutual labels:  archived
Sphero-Win-SDK
🚫 DEPRECATED: Sphero SDK for Win 8.1+ using RFCOMM
Stars: ✭ 36 (-55.56%)
Mutual labels:  archived
nl.fokkezb.loading
The widget provides a simple loading mask that can be easily styled and configured.
Stars: ✭ 96 (+18.52%)
Mutual labels:  archived
waci-presentation-exchange
Wallet And Credential Interactions for Presentation Exchange (Work continues at decentralized-identity/waci-didcomm#1 )
Stars: ✭ 16 (-80.25%)
Mutual labels:  archived
Sphero Ios Sdk
🚫 DEPRECATED: Sphero™ is the amazing robotic ball ( sphero.com ) created by Orbotix, this is the repository for the iOS SDK for Sphero™. Visit dev site for more information:
Stars: ✭ 232 (+186.42%)
Mutual labels:  archived
microsoft-teams-faqplusplus-app
DEPRECATED - This repository contains a deprecated version of the FAQ Plus app template. Please see the README file for more details and a link to the new repository
Stars: ✭ 47 (-41.98%)
Mutual labels:  archived
jest-badges-readme
Creates a group of coverage badges from Jest into your README
Stars: ✭ 30 (-62.96%)
Mutual labels:  archived
tensorflow-export-import-example
example code that shows how to export a model in Python and import that model in Go
Stars: ✭ 24 (-70.37%)
Mutual labels:  archived

DEPRECATED

Microsoft Translator API module for node.js

NOTE: This module currently only supports V2 of the API which will be discontinued on April 30, 2019. https://docs.microsoft.com/en-us/azure/cognitive-services/translator/migrate-to-v3

See https://github.com/MicrosoftTranslator/Text-Translation-API-V3-NodeJS for examples of working with v3.

Methods

Microsoft Translator API Reference

API Docs

  • addTranslation
  • addTranslationArray (not implemented)
  • breakSentences (not working)
  • detect
  • detectArray
  • getLanguageNames
  • getLanguagesForSpeak
  • getLanguagesForTranslate
  • getTranslations
  • getTranslationsArray
  • speak
  • translate
  • translateArray
  • translateArray2

Installation

$ npm install mstranslator

An API key from portal.azure.com is needed to create a token as of April 30, 2017. See Microsoft Translator API Documentation. For details on previous authentication API and migration info

Example Usage - Auto-generated token

var MsTranslator = require('mstranslator');
// Second parameter to constructor (true) indicates that
// the token should be auto-generated.

var client = new MsTranslator({
  api_key: "your portal.azure.com api key"
}, true);

var params = {
  text: 'How\'s it going?',
  from: 'en',
  to: 'es'
};

// Don't worry about access token, it will be auto-generated if needed.
client.translate(params, function(err, data) {
  console.log(data);
});

Example Usage - Generate token manually

var MsTranslator = require('mstranslator');

var client = new MsTranslator({
  api_key: "your portal.azure.com api key"
}, true);

var params = {
  text: 'How\'s it going?',
  from: 'en',
  to: 'es'
};

// Using initialize_token manually.
client.initialize_token(function(err, keys) {
  console.log(keys);
  client.translate(params, function(err, data) {
    console.log(data);
  });
});

Tests

npm test

License

Licensed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].