npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

lingvanex-js-pkg

v1.0.1

Published

A simple package that says Hello, world!

Downloads

20

Readme

Lingvanex API

Go Reference

Discover the Power of Lingvanex Translator Service

Unlock the potential of your applications with Lingvanex Translator, a cutting-edge cloud-based neural machine translation service. Compatible with any operating system, Lingvanex Translator enables the creation of intelligent, multi-lingual solutions for all supported languages.

With Lingvanex, you can effortlessly translate both text and HTML pages, enhancing your global reach and communication capabilities. Explore the capabilities of the Lingvanex Cloud API and learn more about our Secure On-Premise Machine Translation.

How to get the authentication key

Before using the API you need to create the account and then generate the API key at the bottom of the page. You must use this authorization key to authorize requests.

Installation

You can install the library:

npm install lingvanex-js-pkg

Getting the list of languages

To retrieve the list of languages, perform a GET request with the authentication key as follows:

const options = {method: 'GET', headers: {accept: 'application/json'}};

fetch('https://api-b2b.backenster.com/b1/api/v3/getLanguages?platform=api&code=en_GB', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));

Options:

  • url: https://api-b2b.backenster.com/b1/api/v3/getLanguages
  • platform: api
  • Authorization: The key must be obtained in advance
  • code: the language code in the format “language code_code of the country”, which is used to display the names of the languages. The language code is represented only in lowercase letters, the country code only in uppercase letters (example en_GB, es_ES, ru_RU etc). If this option is not present, then English is used by default.

Translate

This POST method translates text and HTML single string or arrays with the authentication key. Also it performs transliteration, language auto detection.

const options = {
  method: 'POST',
  headers: {accept: 'application/json', 'content-type': 'application/json'},
  body: JSON.stringify({platform: 'api'})
};

fetch('https://api-b2b.backenster.com/b1/api/v3/translate', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));

Options:

  • url: https://api-b2b.backenster.com/b1/api/v3/translate
  • platform: api
  • Authorization: The key must be obtained in advance
  • from: the language code in the format “language code_code of the country” from which the text is translated. The language code is represented only in lowercase letters, the country code only in uppercase letters (example en_GB, es_ES, ru_RU and etc.). If this parameter is not present, the auto-detect language mode is enabled.
  • to: language code in the format “language code_code of the country” to which the text is translated (required)
  • data: data for translation.
  • translateMode: Describe the input text format. Possible value is "html" for translating and preserving html structure. If value is not specified or is other than "html" than plain text is translating.
  • enableTransliteration: If true response includes sourceTransliteration and targetTransliteration fields.

Issues

If you are having problems using the library, please contact us.