Skip to content

Yw-melo/youdao-translate-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This package based on youdao translate API.

Install

composer require ywmelo/translate

Publish config file.

php artisan vendor:publish --provider="Youdao\\Translate\\TranslateServiceProvider" --tag="config"

Use

$translate = app('translate');
//$translate = new \Youdao\Translate\Translate();

$translate->translate('你好帅', 'zh-CHS', 'en');

##Detailed documentation

https://ai.youdao.com/docs/doc-trans-api.s#p01

About

Youdao translate composer package.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages