<%= javascript_tag do %>
  Spree.url_params["locale"] = "<%= I18n.locale %>";
<% end %>

<%= javascript_tag do %>
  document.addEventListener("load", function(){
    Spree.url_params["locale"] = "<%= I18n.locale %>";
  })
<% end %>

Fix SD-943 `Spree is not defined`
Fix SD-943 `Spree is not defined`
