Sha256: 5bf63ee4d2dd5e016663ccf1d97f74f2a9ed62552273c31266e23f5e2813fd08

Contents?: true

Size: 181 Bytes

Versions: 10

Compression:

Stored size: 181 Bytes

Contents

def store_translations(locale, translations, &block)
  I18n.backend.store_translations locale, translations
  yield
ensure
  I18n.reload!
  I18n.backend.send :init_translations
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
datagrid-1.5.3 spec/support/i18n_helpers.rb
datagrid-1.5.2 spec/support/i18n_helpers.rb
datagrid-1.5.1 spec/support/i18n_helpers.rb
datagrid-1.5.0 spec/support/i18n_helpers.rb
datagrid-1.4.4 spec/support/i18n_helpers.rb
datagrid-1.4.3 spec/support/i18n_helpers.rb
datagrid-1.4.2 spec/support/i18n_helpers.rb
datagrid-1.4.1 spec/support/i18n_helpers.rb
datagrid-1.4.0 spec/support/i18n_helpers.rb
datagrid-1.3.9 spec/support/i18n_helpers.rb