Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

fix the typo of japan flag name (#12844)

Devin Zhang1b7e092387de
diff --git a/storefront/app/helpers/spree/storefront_helper.rb b/storefront/app/helpers/spree/storefront_helper.rb
index e1dc6dd5a2..ef5d27c2f6 100644
--- a/storefront/app/helpers/spree/storefront_helper.rb
+++ b/storefront/app/helpers/spree/storefront_helper.rb
@@ -65,6 +65,7 @@ module Spree
def svg_country_icon(country_code)
country_code = :us if country_code.to_s.downcase == 'en'
+ country_code = :jp if country_code.to_s.downcase == 'ja'
tag.span(class: "fi fi-#{country_code.downcase}")
end