# frozen_string_literal: true

shared_context 'fr locale' do
  before do
    I18n.backend.store_translations(:fr, spree: {
      i18n: { this_file_language: "Français" },
      cart: 'Panier',
      shopping_cart: 'Panier'
    })
  end

  after do
    I18n.reload!
  end
end

# frozen_string_literal: true

shared_context 'fr locale' do
  before do
    I18n.backend.store_translations(:fr, spree: {
      i18n: { this_file_language: "Français" },
      cart: 'Panier',
      shopping_cart: 'Panier'
    })
  end

  after do
    I18n.locale = :en # reset locale after each spec.
    I18n.reload!
  end
end

Remove order-dependency from locale specs
Remove order-dependency from locale specs

This commit removes an implicit order dependency in the frontend locale
specs.
