Class GoogleAjax::Language
In: lib/google_ajax/language.rb
Parent: Object

Methods

detect   get   translate  

Classes and Modules

Class GoogleAjax::Language::Language
Class GoogleAjax::Language::Translation

Constants

LANGUAGE_VERSION = 1.0
LANGUAGES = { 'ARABIC' => 'ar', 'BULGARIAN' => 'bg', 'CATALAN' => 'ca', 'CHINESE' => 'zh', 'CHINESE_SIMPLIFIED' => 'zh-CN', 'CHINESE_TRADITIONAL' => 'zh-TW', 'CROATIAN' => 'hr', 'CZECH' => 'cs', 'DANISH' => 'da', 'DUTCH'=> 'nl', 'ENGLISH' => 'en', 'ESTONIAN' => 'et', 'FILIPINO' => 'tl', 'FINISH' => 'fi', 'FRENCH' => 'fr', 'GERMAN' => 'de', 'GREK' => 'el', 'HEBREW' => 'iw', 'HINDI' => 'hi', 'HUNGARIAN' => 'hu', 'INDONESIAN' => 'id', 'ITALIAN' => 'it', 'JAPANESE' => 'ja', 'KOREAN' => 'ko', 'LATVIAN' => 'lv', 'LITHUANIAN' => 'lt', 'NORWEGIAN' => 'no', 'PERSIAN' => 'fa', 'POLISH' => 'pl', 'PORTUGUESE' => 'pt-PT', 'ROMANIAN' => 'ro', 'RUSIAN' => 'ru', 'SERBIAN' => 'sr', 'SLOVAK' => 'sk', 'SLOVENIAN' => 'sl', 'SPANISH' => 'es', 'SWEDISH' => 'sv', 'THAI' => 'th', 'TURKISH' => 'tr', 'UKRAINIAN' => 'uk', 'VIETNAMESE' => 'vi', 'UNKNOWN' => ''

Public Class methods

will return the language code that describes the language of the given text

will return translated text for the given text supplied, matching the destination language.

[Validate]