app/models/locomotive/extensions/site/locales.rb
# Iterate through all the locales of the site and for each of them
# call yield with the related Mongoid::Fields::I18n locale context.
# The first locale is the default one.
#
Iterate through all the locales of the site and for each of them
call yield with the related Mongoid::Fields::I18n locale context.
The first locale is the default one.
Iterate through all the locales of the site and for each of them call yield with the related Mongoid :: Fields :: I18n locale context . The first locale is the default one .
def each_locale(&block)
          self.locales.each do |locale|
            ::Mongoid::Fields::I18n.with_locale(locale) do
              yield locale
            end
          end
        end
def each_locale ( & block ) self . locales . each do | locale | :: Mongoid :: Fields :: I18n . with_locale ( locale ) do yield locale end end end
Iterate through all the locales of the site and for each of them
call yield with the related Mongoid::Fields::I18n locale context.
Iterate through all the locales of the site and for each of them call yield with the related Mongoid :: Fields :: I18n locale context .
block
<not_specific>