translator

package module
v0.0.0-...-93683a1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2020 License: MIT Imports: 9 Imported by: 0

README

Wordlistmaker

Google cloud function to translate a list of english and word in another language and returns a csv with english, target language and (optional) romanization.

Usage

# example.json
{
    "words": [
        "work",
        "a day",
        "朋友",
        "client",
        "你好"
    ]
}

returns

work, 工作, gōng zuò
a day, 一天, yī tiān
friend, 朋友, péng yǒu
client, 客户, kè hù
hello there, 你好, nǐ hǎo

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Translate

func Translate(w http.ResponseWriter, r *http.Request)

Translate gets translation from api service

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL