Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/simon-he95/translate
- Owner: Simon-He95
- License: mit
- Created: 2023-04-24T09:19:17.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-03T15:13:47.000Z (4 months ago)
- Last Synced: 2024-11-24T20:49:33.976Z (2 months ago)
- Topics: translate, translate-api
- Language: TypeScript
- Homepage:
- Size: 137 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: license
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)
![sponsors](https://www.hejian.club/images/sponsors.jpg)