Module: Decidim::Initiatives::CurrentLocale

Included in:
CreateInitiative, InitiativeSearch, SimilarInitiatives, UpdateInitiative
Defined in:
decidim-initiatives/lib/decidim/initiatives/current_locale.rb

Overview

Current locale related functions

Instance Method Summary collapse

Instance Method Details

#current_localeObject

PUBLIC: Returns the current locale as a String


8
9
10
# File 'decidim-initiatives/lib/decidim/initiatives/current_locale.rb', line 8

def current_locale
  I18n.locale.to_s
end