Module: Georgia::InternationalizationHelper

Defined in:
app/helpers/georgia/internationalization_helper.rb

Instance Method Summary collapse

Instance Method Details

#available_localesObject



4
5
6
# File 'app/helpers/georgia/internationalization_helper.rb', line 4

def available_locales
  I18n.available_locales
end


8
9
10
11
12
13
14
# File 'app/helpers/georgia/internationalization_helper.rb', line 8

def link_to_locale html_options={}
  if available_locales.length == 2
    link_to_locale_single html_options
  else
    link_to_locale_list html_options
  end
end