Sha256: ba325b26c1815f00de304828cab088d2b19b5e0e175a928f43ffdc785cc5de6b
Contents?: true
Size: 260 Bytes
Versions: 2
Compression:
Stored size: 260 Bytes
Contents
module I18nSupport extend ActiveSupport::Concern 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-4.0.0.1 | test/support/i18n_support.rb |
localizable_routes-4.0.0.0 | test/support/i18n_support.rb |