Home
Softono
googletranslatefree

googletranslatefree

Open source Go
61
Stars
18
Forks
1
Issues
1
Watchers
2 years
Last Commit

About googletranslatefree

Google translations for free in golang

Platforms

Web Self-hosted

Languages

Go

Links

Google Translate FREE in golang

Note: This is not normal commercial Translator API provided by Google.

Install:
go get github.com/bas24/googletranslatefree

Example usage:

    package main

    import (
        "fmt"
        gt "github.com/bas24/googletranslatefree"
    )

    func main(){
        const text string = `Hello, World!`
        // you can use "auto" for source language
        // so, translator will detect language
        result, _ := gt.Translate(text, "en", "es")
        fmt.Println(result)
        // Output: "Hola, Mundo!"
    }