yandex-translate-api-wrapper
    Overview
    Documentation
    Tutorials
    Chat
    Insights
    Code
    Dependencies
    Contributors
    Jobs

yandex-translate-api-wrapper

A wrapper of the Yandex's translation api.

1.0.0  •  Updated 3 years ago  •  by Tomás  •  MIT License

A simple wrapper of the Yandex’s translation API.

Install

$ npm install yandex-translate-api-wrapper --save

Usage

translateApi.getLanguageList(apiKey);
//=> return the list of supported languages

apiWrapper.translateText(apiKey, supportedLanguage, text);
//=> return translation

Example

const translateApi = require('yandex-translate-api-wrapper')
const apiKey = 'xxxxxxx'
const languageList = translateApi.getLanguageList(apiKey);
//=> {"dirs":["az-ru","be-bg"...]}

const translation = translateApi.translateText(apiKey, 'es-en', 'Hola');
//=> {"code":200,"lang":"es-en","text":["Hello"]}

License

MIT © Tommytrg.

Popularity

Maintenance

Development

Last ver 3 years ago
Created 3 years ago
Last commit 2 years ago
Invalid date between commits

Technology

Node version: 7.10.1
0 unpacked

Compliance

MIT License
OSI Approved
0 vulnerabilities

Contributors

1 contributors
Tomas Ruiz
Maintainer, 17 commits
Openbase helps developers choose among and use millions of open-source packages, so they can build amazing products faster.
FacebookTwitterLinkedIn
© 2020 Devstore, Inc.