feat: add translation API (#297)

* feat: add translation

* feat: resurface translation by Google Translation

* feat: renamed the service as `translate` to make more readable

* fix: renamed response and request name to match rpc name

* chore: delete useless blank line

* Update publicapi.json

* Update publicapi.json

* Update README.md

Co-authored-by: Asim Aslam <asim@aslam.me>
This commit is contained in:
zhaoyang
2021-12-10 18:15:57 +08:00
committed by GitHub
parent 1d6234155a
commit 4ec7a7aa5c
15 changed files with 674 additions and 0 deletions

3
go.mod
View File

@@ -3,6 +3,7 @@ module github.com/micro/services
go 1.15
require (
cloud.google.com/go/translate v1.0.0
github.com/PuerkitoBio/goquery v1.6.1
github.com/SlyMarbo/rss v1.0.1
github.com/Teamwork/spamc v0.0.0-20200109085853-a4e0c5c3f7a0
@@ -55,7 +56,9 @@ require (
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2
golang.org/x/net v0.0.0-20210614182718-04defd469f4e
golang.org/x/oauth2 v0.0.0-20211005180243-6b3c2da341f1
golang.org/x/text v0.3.6
google.golang.org/api v0.59.0
google.golang.org/genproto v0.0.0-20211008145708-270636b82663 // indirect
google.golang.org/grpc/examples v0.0.0-20211103202053-3b94303f3754 // indirect
google.golang.org/protobuf v1.27.1
googlemaps.github.io/maps v1.3.1