From 987718e923f76665e94a1c63ac5158203bef5f2a Mon Sep 17 00:00:00 2001 From: Jonathan Zisser Date: Tue, 14 Dec 2021 15:00:27 -0500 Subject: [PATCH] Adds the missing en-CA localization for the select2 dropdown in solidus admin. Solution inspired by #3895. --- .../select2_locales/select2_locale_en-CA.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 backend/vendor/assets/javascripts/solidus_admin/select2_locales/select2_locale_en-CA.js diff --git a/backend/vendor/assets/javascripts/solidus_admin/select2_locales/select2_locale_en-CA.js b/backend/vendor/assets/javascripts/solidus_admin/select2_locales/select2_locale_en-CA.js new file mode 100644 index 00000000000..aa45ac1fa39 --- /dev/null +++ b/backend/vendor/assets/javascripts/solidus_admin/select2_locales/select2_locale_en-CA.js @@ -0,0 +1,10 @@ +/** + * Select2 English Canada translations + */ +(function ($) { + "use strict"; + + $.fn.select2.locales['en-CA'] = {}; + + $.extend($.fn.select2.defaults, $.fn.select2.locales['en-CA']); +})(jQuery);