Module: Decidim::Initiatives::CurrentLocale
- Included in:
- CreateInitiative, UpdateInitiative
- Defined in:
- lib/decidim/initiatives/current_locale.rb
Overview
Current locale related functions
Instance Method Summary collapse
-
#current_locale ⇒ Object
PUBLIC: Returns the current locale as a String.
Instance Method Details
#current_locale ⇒ Object
PUBLIC: Returns the current locale as a String
8 9 10 |
# File 'lib/decidim/initiatives/current_locale.rb', line 8 def current_locale I18n.locale.to_s end |