Merge pull request #14105 from gbathree/14099-fix-subscriptions-screen-text

Fix raw JSON blob showing on Subscriptions screen
This commit is contained in:
Maikel
2026-04-08 15:03:51 +10:00
committed by GitHub
3 changed files with 7 additions and 12 deletions

View File

@@ -92,7 +92,7 @@ module Orders
end
def translation_scope
"orders.customer_credit_service"
"customer_credit_service"
end
class Response

View File

@@ -5220,8 +5220,7 @@ en:
credit_payment_method_missing: Credit payment method is missing
no_credit_available: No credit available
not_enough_credit_available: Not enough credit available
orders:
customer_credit_service:
no_credit_owed: No credit owed
credit_payment_method_missing: Customer credit payment method is missing, please check configuration
refund_sucessful: Refund successful!
customer_credit_service:
no_credit_owed: No credit owed
credit_payment_method_missing: Customer credit payment method is missing, please check configuration
refund_sucessful: Refund successful!

View File

@@ -220,13 +220,9 @@ RSpec.describe '
let(:product) { create(:simple_product) }
let(:variant) { product.variants.first }
around do |example|
I18n.default_locale = :es
example.run
I18n.default_locale = :en
end
before do
allow(I18n).to receive(:default_locale).and_return(:es)
variant.update( unit_value: 1, unit_description: 'foo' )
# When I view the variant