All Projects → plainheart → bing-translate-api

plainheart / bing-translate-api

Licence: MIT License
A simple and free API for Bing Translator for Node.js

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to bing-translate-api

node-google-translate-skidz
Simple Node.js library for talking to Google's Translate API for free.
Stars: ✭ 70 (+89.19%)
Mutual labels:  translator, free, translate
Translator3000
Automatic translator of games made on Ren'Py engine.
Stars: ✭ 78 (+110.81%)
Mutual labels:  translator, translate
react-translator-component
React language translation module for developing a multilingual project.
Stars: ✭ 13 (-64.86%)
Mutual labels:  translator, translate
gpytranslate
A Python3 library for translating text using Google Translate API.
Stars: ✭ 34 (-8.11%)
Mutual labels:  translator, translate
HighlightTranslator
Highlight Translator can help you to translate the words quickly and accurately. By only highlighting, copying, or screenshoting the content you want to translate anywhere on your computer (ex. PDF, PPT, WORD etc.), the translated results will then be automatically displayed before you.
Stars: ✭ 54 (+45.95%)
Mutual labels:  translator, translate
LibreTranslate
Free and Open Source Machine Translation API. Self-hosted, offline capable and easy to setup.
Stars: ✭ 3,932 (+10527.03%)
Mutual labels:  translator, translate
php-google-translate-for-free
Library for free use Google Translator. With attempts connecting on failure and array support.
Stars: ✭ 124 (+235.14%)
Mutual labels:  translator, translate
DocumentTranslation
Command Line tool and Windows application for document translation, a local interface to the Azure Document Translation service for Windows, macOS and Linux.
Stars: ✭ 61 (+64.86%)
Mutual labels:  translator, translate
translate
A module grouping multiple translation APIs
Stars: ✭ 321 (+767.57%)
Mutual labels:  translator, translate
copy-translator
简单、轻量、好用的划词翻译软件
Stars: ✭ 979 (+2545.95%)
Mutual labels:  translator, free
Misakatranslator
御坂翻译器—Galgame/文字游戏/漫画多语种实时机翻工具
Stars: ✭ 2,211 (+5875.68%)
Mutual labels:  translator, translate
tr4n5l4te
Use Google Translate without an API key.
Stars: ✭ 32 (-13.51%)
Mutual labels:  translator, translate
Translators
🌏🌍🌎Translators🌎🌍🌏 is a library which aims to bring free, multiple, enjoyable translation to individuals and students in Python. Translators是一个旨在用Python为个人和学生带来免费、多样、愉快翻译的库。
Stars: ✭ 295 (+697.3%)
Mutual labels:  bing, translate
TranslateAPI
Simple Java library to translate your text using Google Translate without using of API KEY
Stars: ✭ 51 (+37.84%)
Mutual labels:  free, translate
Google Translate Api
A free and unlimited API for Google Translate 💵🚫
Stars: ✭ 1,996 (+5294.59%)
Mutual labels:  free, translate
deepl-php-lib
🧠 DeepL API Client Library supporting PHP >= 7.3
Stars: ✭ 50 (+35.14%)
Mutual labels:  translator, translate
SimpleTranslationSystem
A simple C# translation system
Stars: ✭ 14 (-62.16%)
Mutual labels:  translator, translate
linguist
Linguist is a powerful browser extension for translate pages and text, which are ready to replace your favorite translate service
Stars: ✭ 21 (-43.24%)
Mutual labels:  translator, translate
BingPicApi
Bing 每日图片 API
Stars: ✭ 58 (+56.76%)
Mutual labels:  bing
nextly-template
Nextly Landing Page Template built with Next.js & TailwindCSS
Stars: ✭ 48 (+29.73%)
Mutual labels:  free

bing-translate-api

NPM version Auto Test NPM Downloads License

A simple and free API for Bing Translator for Node.js.

Install

npm install bing-translate-api

Usage

From auto-detected language to English:

const { translate } = require('bing-translate-api');

translate('你好', null, 'en', true).then(res => {
  console.log(res.translation);
}).catch(err => {
  console.error(err);
});

Translation result

{
  "text": "你好",
  "userLang": "auto-detect",
  "translation": "Hello",
  // `correctedText` is returned only when `correct` is set as `true`
  // supported since v1.1.0
  "correctedText": "",
  "language": {
    "to": "en",
    "from": "zh-Hans",
    // supported since v1.1.0
    "score": 1
  }
}

API

translate(text, [from], [to], [correct], [raw], [userAgent])

text

Type: string

The text to be translated, can't be blank. The maximum text length is 1000.

from

Type: string Default: auto-detect

The language code of source text. MUST be auto-detect or one of the codes/names (not case sensitive) contained in lang.js

to

Type: string Default: en

The language in which the text should be translated. MUST be one of the codes/names (not case sensitive) contained in lang.js.

correct

Type: boolean Default: false Since: v1.1.0

Whether to correct the input text.

Note that:

  1. There is currently a limit of 50 characters for correction service.
  2. Only the languages in the list are supported to be corrected.
raw

Type: boolean Default: false

Whether the translation result contains raw response from Bing API.

userAgent

Type: string

The header value of user-agent used in API requests.

Default:

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36

License

MIT © 2021 plainheart.

Thanks

Great thanks to Bing Translator for providing so excellent translation service.

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].