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.

Formatting for zh_tw.

Matthew Kennedy17a44cfc57db
diff --git a/backend/app/helpers/spree/admin/base_helper.rb b/backend/app/helpers/spree/admin/base_helper.rb
index 06695ce3e0..c757298244 100644
--- a/backend/app/helpers/spree/admin/base_helper.rb
+++ b/backend/app/helpers/spree/admin/base_helper.rb
@@ -229,7 +229,7 @@ module Spree
def flatpickr_local_fallback
stripped_locale = I18n.locale.to_s.split('-').first
- if ['sr-cyr', 'uz_latn', 'zh-tw'].include?(I18n.locale.to_s.parameterize)
+ if ['sr_cyr', 'uz_latn', 'zh_tw'].include?(I18n.locale.to_s.downcase)
I18n.locale.to_s.parameterize
elsif FLATPICKR_SUPPORTED_LOCALES.include? stripped_locale
stripped_locale