Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/simon-he95/translate

api for translating powered by bing
https://github.com/simon-he95/translate

translate translate-api

Last synced: about 2 months ago
JSON representation

api for translating powered by bing

Awesome Lists containing this project

README

        

## translate
工具: 中转英 英转中

## Usage
```ts
import translateLoader from '@simon_he/translate'

const translate = translateLoader()

const translated = await translate('hello') // ['你好']
const multipleTranslated = await translate(['hello', 'world']) // ['你好', '世界']
```

## Install
```
npm i @simon_he/translate
```

## License
[MIT](./LICENSE) License © 2022 [Simon He](https://github.com/Simon-He95)

Buy Me A Coffee

![sponsors](https://www.hejian.club/images/sponsors.jpg)