Module: Babelphish::GoogleTranslate

Defined in:
lib/babelphish/languages.rb

Constant Summary collapse

AFRIKAANS =
'af'
ALBANIAN =
'sq'
AMHARIC =
'am'
ARABIC =
'ar'
ARMENIAN =
'hy'
AZERBAIJANI =
'az'
BASQUE =
'eu'
BELARUSIAN =
'be'
BENGALI =
'bn'
BIHARI =
'bh'
BULGARIAN =
'bg'
BURMESE =
'my'
CATALAN =
'ca'
CHEROKEE =
'chr'
CHINESE =
'zh'
CHINESE_SIMPLIFIED =
'zh-CN'
CHINESE_TRADITIONAL =
'zh-TW'
CROATIAN =
'hr'
CZECH =
'cs'
DANISH =
'da'
DHIVEHI =
'dv'
DUTCH =
'nl'
ENGLISH =
'en'
ESPERANTO =
'eo'
ESTONIAN =
'et'
FILIPINO =
'tl'
FINNISH =
'fi'
FRENCH =
'fr'
GALICIAN =
'gl'
GEORGIAN =
'ka'
GERMAN =
'de'
GREEK =
'el'
GUARANI =
'gn'
GUJARATI =
'gu'
HEBREW =
'iw'
HINDI =
'hi'
HUNGARIAN =
'hu'
ICELANDIC =
'is'
INDONESIAN =
'id'
INUKTITUT =
'iu'
ITALIAN =
'it'
JAPANESE =
'ja'
KANNADA =
'kn'
KAZAKH =
'kk'
KHMER =
'km'
KOREAN =
'ko'
KURDISH =
'ku'
KYRGYZ =
'ky'
LAOTHIAN =
'lo'
LATVIAN =
'lv'
LITHUANIAN =
'lt'
MACEDONIAN =
'mk'
MALAY =
'ms'
MALAYALAM =
'ml'
MALTESE =
'mt'
MARATHI =
'mr'
MONGOLIAN =
'mn'
NEPALI =
'ne'
NORWEGIAN =
'no'
ORIYA =
'or'
PASHTO =
'ps'
PERSIAN =
'fa'
POLISH =
'pl'
PORTUGUESE =
'pt-PT'
PUNJABI =
'pa'
ROMANIAN =
'ro'
RUSSIAN =
'ru'
SANSKRIT =
'sa'
SERBIAN =
'sr'
SINDHI =
'sd'
SINHALESE =
'si'
SLOVAK =
'sk'
SLOVENIAN =
'sl'
SPANISH =
'es'
SWAHILI =
'sw'
SWEDISH =
'sv'
TAJIK =
'tg'
TAMIL =
'ta'
TAGALOG =
'tl'
TELUGU =
'te'
THAI =
'th'
TIBETAN =
'bo'
TURKISH =
'tr'
UKRAINIAN =
'uk'
URDU =
'ur'
UZBEK =
'uz'
UIGHUR =
'ug'
VIETNAMESE =
'vi'
LANGUAGES =

Google doesn't support translations to all languages. These are the translations available. See: code.google.com/apis/ajaxlanguage/documentation/#SupportedPairs

[ALBANIAN, ARABIC, BULGARIAN, CATALAN, CHINESE, CHINESE_SIMPLIFIED,CHINESE_TRADITIONAL, CROATIAN,
CZECH, DANISH, DUTCH, ENGLISH, ESTONIAN, FILIPINO, FINNISH, FRENCH, GALICIAN, GERMAN, GREEK, HEBREW, HINDI, HUNGARIAN,
INDONESIAN, ITALIAN, JAPANESE, KOREAN, LATVIAN, LITHUANIAN, MALTESE, NORWEGIAN, PERSIAN, POLISH, PORTUGUESE,
ROMANIAN, RUSSIAN, SERBIAN, SLOVAK, SLOVENIAN, SPANISH, SWEDISH, THAI, TURKISH, UKRAINIAN, VIETNAMESE]