Need help with gtranslate?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

bregydoc
146 Stars 42 Forks MIT License 26 Commits 10 Opened issues

Description

Google translate API for unlimited and free translations, gtranslate generates the necessary token to use the Google Translate API for free

Services available

!
?

Need anything else?

Contributors list

# 378,889
Dart
Go
14 commits
# 323,568
tests
integra...
C#
Shell
5 commits
# 398,732
Svelte
Shell
HTML
TeX
1 commit

gtranslate build

Google Translate API for unlimited and free translations 📢. This project was inspired by google-translate-api and google-translate-token.

Install

go get github.com/bregydoc/gtranslate

Use

gtranslate.Translate("I'm alive", language.English, language.Spanish)
gtranslate.TranslateWithParams("I'm alive", gtranslate.TranslateWithParams{From: "en", To: "es"})

Example

package main

import ( "fmt"

"github.com/bregydoc/gtranslate"

)

func main() { text := "Hello World" translated, err := gtranslate.TranslateWithParams( text, gtranslate.TranslationParams{ From: "en", To: "ja", }, ) if err != nil { panic(err) }

fmt.Printf("en: %s | ja: %s \n", text, translated)
// en: Hello World | ja: こんにちは世界

}

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.