Giter Club home page Giter Club logo

cf-free-deeplx's Introduction

cf-free-deeplx-translate

  • 一个简便的负载均衡的方式来使用翻译服务

部署方式

  • 建议自己部署CF-Work,这个只是Demo
  • 配置cloudflare的Work
  • 设置 > 变量 > 添加环境变量
  • 环境变量名称:TARGET_URL,值为:https://dx.ift.lat,https://deepl.tr1ck.cn,https://translate.dftianyi.com,https://deepl.dlwlrma.xyz,https://deepl.d0zingcat.xyz,https://e.nxnow.top,https://deeplx.he-sb.top,https://deepl.aimoyu.tech,https://deepl.coloo.org,https://api.deeplx.org,https://deeplx.keyrotate.com,https://deeplx.spaceq.xyz,https://deeplx.ychinfo.com,https://deeplx.papercar.top,https://deepx.dumpit.top,https://deepl.degbug.top,https://dx-api.nosec.link,https://deepl.mukapp.top,https://deeplx.imward.dev,https://ghhosa.zzaning.com,https://deeplx.6696699.xyz,https://deeplx.zeabur.app,https://deepl.zhaosaipo.com,https://deeplx.vercel.app
  • 把index.js的内容粘贴到cloudflare的work中
  • 在cloudflare > work > 触发器,配置自定义域名就可以愉快的翻译了

参考deeplx使用方式或者沉浸式翻译

curl --location 'https://deeplx.aivvm.com/translate' \
--header 'Content-Type: application/json' \
--data '{
    "text": "hello world",
    "source_lang": "EN",
    "target_lang": "ZH"
}'

响应

{
    "alternatives": [
        "你好世界",
        "哈喽世界",
        "哈啰世界"
    ],
    "code": 200,
    "data": "哈罗世界",
    "id": 8345422279,
    "method": "Free",
    "source_lang": "EN",
    "target_lang": "ZH"
}

cf-free-deeplx's People

Contributors

caoyunzhou avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.