Sha256: 7603b40cdb01427fc6efdf48ead2fa9684bdac4786fde195da6a2e1ad8be3e66

Contents?: true

Size: 228 Bytes

Versions: 2

Compression:

Stored size: 228 Bytes

Contents

module I18nSupport

  def iterate_locales
    I18n.available_locales.each do |locale|
      @locale = locale
      yield locale
    end
    @locale = nil
  end

  private

  def t(key)
    I18n.t key, locale: @locale
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
localizable_routes-2.1.0 test/support/i18n_support.rb
localizable_routes-2.0.0 test/support/i18n_support.rb