No commit activity in last 3 years
No release in over 3 years
Simple API client as an interface for Google Translation API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Google Translation Client

This is a minimalistic API client for Google Translation API

Installation

Installation is a piece of cake:

$ gem install google_translation

Usage

Using the Google Translation client is easy:

# Translate from one language to another
client = Translate.new('YOUR API KEY')
client.translate(:source => 'en', :target => 'de', :q => 'Some text to translate')

# Discover available languages
client.discover()

# Detect a language
client.detect("If wishes were fishes we'd all cast nets")