Module: Recommender::Languages

Defined in:
lib/muck-services/languages.rb

Constant Summary collapse

AVAILABLE_LOCALES =
"^en|es|fr|nl|ja|de|ru|zh"
DEFAULT_LOCALE =
'en'
ARABIC =
"ar"
BULGARIAN =
"bg"
CATALAN =
"ca"
CHINESE =
"zh"
CHINESE_SIMPLIFIED =
"zh-CN"
CHINESE_TRADITIONAL =
"zh-TW"
CROATIAN =
"cr"
CZECH =
"cs"
DANISH =
"da"
DUTCH =
"nl"
ENGLISH =
"en"
FILIPINO =
"tl"
FINNISH =
"fi"
FRENCH =
"fr"
GERMAN =
"de"
GREEK =
"el"
HEBREW =
"iw"
HINDI =
"hi"
INDONESIAN =
"id"
ITALIAN =
"it"
JAPANESE =
"ja"
KOREAN =
"ko"
LATVIAN =
"lv"
LITHUANIAN =
"lt"
NORWEGIAN =
"no"
POLISH =
"pl"
PORTUGESE =
"pt"
ROMANIAN =
"ro"
RUSSIAN =
"ru"
SERBIAN =
"sr"
SLOVAK =
"sk"
SLOVENIAN =
"sl"
SPANISH =
"es"
SWEDISH =
"sv"
UKRANIAN =
"uk"
VIETNAMESE =
"vi"
LANGUAGES =

LANGUAGES = [ARABIC, BULGARIAN, CATALAN, CHINESE, CHINESE_SIMPLIFIED,CHINESE_TRADITIONAL,

CROATIAN, CZECH, DANISH, DUTCH, ENGLISH, FILIPINO, FRENCH, GERMAN, GREEK, HEBREW,
ITALIAN, JAPANESE, KOREAN, LATVIAN, LITHUANIAN, NORWEGIAN, POLISH, PORTUGESE,
ROMANIAN, RUSSIAN, SERBIAN, SLOVAK, SLOVENIAN, SPANISH, SWEDISH, UKRANIAN, VIETNAMESE]
[ARABIC, BULGARIAN, CATALAN, CHINESE, CHINESE_SIMPLIFIED,CHINESE_TRADITIONAL,
CZECH, DANISH, DUTCH, ENGLISH, FILIPINO, FRENCH, GERMAN, GREEK, HEBREW,
ITALIAN, JAPANESE, KOREAN, LATVIAN, LITHUANIAN, NORWEGIAN, POLISH, PORTUGESE,
ROMANIAN, RUSSIAN, SERBIAN, SLOVAK, SLOVENIAN, SPANISH, SWEDISH, UKRANIAN, VIETNAMESE]

Class Method Summary collapse

Class Method Details

.supported_languagesObject


53
54
55
# File 'lib/muck-services/languages.rb', line 53

def self.supported_languages
  AVAILABLE_LOCALES.gsub('^', '').split('|')
end