wisenchen / common-translate-api

A library for easy access to multiple translation APIs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

common-translate-api

A library for easy access to multiple translation APIs. This library provides a unified interface to interact with different translation services.

Technology Stack

This project is built with Vite, TypeScript, pnpm, and Axios.

  • Vite: A build tool that aims to provide a faster and leaner development experience for modern web projects.
  • TypeScript: A typed superset of JavaScript that compiles to plain JavaScript.
  • pnpm: A fast, disk space efficient package manager.
  • Axios: A promise-based HTTP client for the browser and node.js.

Getting Started

Package manager

Using pnpm:

$ pnpm add common-translate-api

Using npm:

$ npm install common-translate-api

Using yarn:

$ yarn add common-translate-api

Using bower:

$ bower install common-translate-api

CDN

Using jsDelivr CDN (ES5 UMD browser module):

<script src="https://cdn.jsdelivr.net/npm/common-translate-api@1.1.0/dist/index.min.js"></script>

Using unpkg CDN:

<script src="https://unpkg.com/common-translate-api@1.1.0/dist/index.min.js"></script>

Features

Translations

  • google
  • youdao
  • bing
  • baidu
  • deepl
  • GPT-3.5

About

A library for easy access to multiple translation APIs.

License:MIT License


Languages

Language:TypeScript 100.0%