Use I18n API for readability

This commit is contained in:
Maikel Linke
2026-01-07 17:11:55 +11:00
parent a1bdfa0a20
commit a957df1205

View File

@@ -122,8 +122,8 @@ module Spree
end
def self.clean_name
i18n_key = "spree.admin.payment_methods.providers.#{name.demodulize.downcase}"
I18n.t(i18n_key)
scope = "spree.admin.payment_methods.providers"
I18n.t(name.demodulize.downcase, scope:)
end
private