Skip to content

Haceau-Zoac/Haceau.Google.Translate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Haceau.Google.Translate

Language .Net Core

Gitee Github

介绍

Haceau.Google.Translate是一个类库,用于向Google翻译发出请求并获取返回的数据。

使用

  1. 导入dll文件
  2. 添加using Haceau.Google
  3. 创建HttpClient类的实例(例:HttpClient httpClient = new HttpClient())
  4. 创建Translation类的实例,参数1为源语言(可忽略,默认为zh-cn),参数2为目标语言(可忽略,默认为en),参数3为HttpClient(例:Translation t = new Translation("en", "ja", httpClient))
  5. 使用Translate方法获取结果(例:t.Translate("hello world!"))

About

调用谷歌翻译的API接口

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages