Popularity
4.4
Stable
Activity
0.0
Stable
31
31
6
Programming language: Go
License: MIT License
Tags:
Third-party APIs
translate alternatives and similar packages
Based on the "Third-party APIs" category.
Alternatively, view translate alternatives based on common mentions on social networks and blogs.
-
go-openai
OpenAI ChatGPT, GPT-3, GPT-4, DALL·E, Whisper API wrapper for Go -
goamz
Popular fork of goamz which adds some missing API calls to certain packages. -
webhooks
:fishing_pole_and_fish: Webhook receiver for GitHub, Bitbucket, GitLab, Gogs -
githubql
Package githubv4 is a client library for accessing GitHub GraphQL API v4 (https://docs.github.com/en/graphql). -
twitter-scraper
Scrape the Twitter frontend API without authentication with Golang. -
geo-golang
Go library to access geocoding and reverse geocoding APIs -
lark
Feishu(飞书)/Lark Open API Go SDK, Support ALL Open API and Event Callback. -
openaigo
OpenAI GPT3/3.5 and GPT4 ChatGPT API Client Library for Go, simple, less dependencies, and well-tested -
go-lark
An easy-to-use SDK for Feishu and Lark Open Platform (Instant Messaging API only) -
go-trending
Go library for accessing trending repositories and developers at Github. -
hipchat (xmpp)
A golang package to communicate with HipChat over XMPP -
gostorm
GoStorm is a Go library that implements the communications protocol required to write Storm spouts and Bolts in Go that communicate with the Storm shells. -
clarifai
DEPRECATED: please use https://github.com/Clarifai/clarifai-go-grpc -
simples3
Simple no frills AWS S3 Golang Library using REST with V4 Signing (without AWS Go SDK) -
hipchat
This project implements a Go client library for the Hipchat API. -
go-tgbot
Golang telegram bot API wrapper, session-based router and middleware -
cachet
Go(lang) client library for Cachet (open source status page system). -
google-play-scraper
Golang scraper to get data from Google Play Store -
ynab
Go client for the YNAB API. Unofficial. It covers 100% of the resources made available by the YNAB API.
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Promo
www.influxdata.com
Do you think we are missing an alternative of translate or a related project?
README
Translate
Go online translation package
Install
go get github.com/nuveo/translate
Available Translator API's
- Microsoft
- or send us the next Translator API :smile:
Usage
package main
import (
"fmt"
"log"
"github.com/nuveo/translate"
)
func main() {
// gettind your credentials here in: http://www.microsoft.com/translator/getstarted.aspx
t := µsoft.AuthRequest{"client_id", "client_secret"}
// Generate a token valid for 10 minutes
tokenResponse := microsoft.GetAccessToken(t)
text := "one two three"
from := "en"
to := "pt"
toTranslate := µsoft.TextTranslate{
Text: text, From: from, To: to, TokenResponse: tokenResponse,
}
// Get translate of text, return the word translated and error
resp, err := microsoft.TranslateText(toTranslate)
if err != nil {
log.Println(err)
}
fmt.Println(resp) // um dois três
texts := []string{"one two three", "the book on the table"}
toTranslate.Texts = texts
// or get translate of array of strings
resps, err := microsoft.TranslateTexts(toTranslate)
if err != nil {
log.Println(err)
}
fmt.Println(resps) // [um dois três o livro em cima da mesa]
// Detect the language of texts
detect := []string{"mundo", "world", "monde"}
toTranslate.Texts = detect
respsD, err := microsoft.DetectText(toTranslate)
if err != nil {
log.Println(err)
}
fmt.Println(respsD, toTranslate.Texts) // [es en fr]
}
Support to cache with Redis
Now Translate make cache of words translated.
// to activate cache
toTranslate := µsoft.TextTranslate{
Text: text, From: from, To: to, TokenResponse: tokenResponse, Cache: true,
}