├── bun.lockb ├── .gitignore ├── translate.mjs ├── package.json ├── .github └── dependabot.yml └── readme.md /bun.lockb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifyour/deeplx-js/HEAD/bun.lockb -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | *.log* 3 | .nitro 4 | .cache 5 | .output 6 | .env 7 | dist -------------------------------------------------------------------------------- /translate.mjs: -------------------------------------------------------------------------------- 1 | import { query } from "@ifyour/deeplx"; 2 | 3 | export default async function (params, context) { 4 | return await query(params); 5 | } 6 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "deeplx", 3 | "version": "1.0.0", 4 | "description": "🥰 JavaScript implementation of DeepLx with one-click deployment support", 5 | "main": "translate.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "keywords": [], 10 | "author": "ifyour", 11 | "license": "ISC", 12 | "dependencies": { 13 | "@ifyour/deeplx": "^0.1.17" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # To get started with Dependabot version updates, you'll need to specify which 2 | # package ecosystems to update and where the package manifests are located. 3 | # Please see the documentation for all configuration options: 4 | # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates 5 | 6 | version: 2 7 | updates: 8 | - package-ecosystem: "npm" # See documentation for possible values 9 | directory: "/" # Location of package manifests 10 | schedule: 11 | interval: "weekly" 12 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # deeplx-js 2 | 3 | This is the js implementation of [DeepLX](https://github.com/OwO-Network/DeepLX), you can get a copy and launch your own on [AirCode](https://aircode.io) by clicking the button below. 4 | 5 | [![Deploy with AirCode](https://aircode.io/aircode-deploy-button.svg)](https://aircode.io/dashboard?owner=ifyour&repo=deeplx-js&branch=main&appname=deeplx) 6 | 7 | ### Demo 8 | 9 | Test input parameters: 10 | 11 | ```json 12 | { 13 | "text": "你好,世界", 14 | "source_lang": "zh", 15 | "target_lang": "en" 16 | } 17 | ``` 18 | 19 | ![demo](https://images.mingming.dev/file/d1c6fd89334f18b34d9ac.png) 20 | 21 | ### License 22 | 23 | Licensed under the MIT License. 24 | --------------------------------------------------------------------------------