From d1132b2537b7a4dcf00bb7bd036db2b86125c2d8 Mon Sep 17 00:00:00 2001 From: Antonio Facciolo Date: Thu, 19 Jul 2018 10:16:44 +0200 Subject: [PATCH] consider country part of the locale for select2 --- backend/app/views/spree/admin/shared/_js_locale_data.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/views/spree/admin/shared/_js_locale_data.html.erb b/backend/app/views/spree/admin/shared/_js_locale_data.html.erb index f9fe2079bbf..93f6096a38c 100644 --- a/backend/app/views/spree/admin/shared/_js_locale_data.html.erb +++ b/backend/app/views/spree/admin/shared/_js_locale_data.html.erb @@ -33,7 +33,7 @@ -<% if I18n.locale != :en %> +<% if I18n.locale.to_s.split('-').first != 'en' %> <%= javascript_include_tag "solidus_admin/select2_locales/select2_locale_#{I18n.locale}", data: {turbolinks_track: 'reload'} %> <% end %>