module Decidim::Plans::LocaleAware

Public Instance Methods

current_locale() click to toggle source
# File lib/decidim/plans/locale_aware.rb, line 9
def current_locale
  I18n.locale.to_s
end

Private Instance Methods

available_locales() click to toggle source

The available locales in the application. Available as a helper for the views.

Returns an Array of Strings.

# File lib/decidim/plans/locale_aware.rb, line 27
def available_locales
  @available_locales ||= (current_organization || Decidim).public_send(:available_locales)
end