文件名称:deepl-web-translator:Deepl-web-translator
文件大小:4KB
文件格式:ZIP
更新时间:2024-06-12 15:03:57
JavaScript
使用Deepl Web免费API翻译 安装 npm i deepl-web-translator --save API密钥 不需要钥匙 支持的语言 "English" "Chinese" "French" "German" "Spanish" "IPortugueseT" "Italian" "Dutch" "Polish" "Russian" 用法 import Translation from "deepl-web-translator" ; ( async ( ) => { const t = await new Translation ( true , "English" , "Chinese" ) ; let result = await t . translateData ( t , [ "hello world" , "hello world" ] ) ;
【文件预览】:
deepl-web-translator-master
----.gitignore(2KB)
----package.json(419B)
----index.js(4KB)
----README.md(569B)
----translate.test.js(206B)
----lang.js(1KB)