mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-08 07:46:59 +00:00
Merge pull request #14105 from gbathree/14099-fix-subscriptions-screen-text
Fix raw JSON blob showing on Subscriptions screen
This commit is contained in:
@@ -92,7 +92,7 @@ module Orders
|
||||
end
|
||||
|
||||
def translation_scope
|
||||
"orders.customer_credit_service"
|
||||
"customer_credit_service"
|
||||
end
|
||||
|
||||
class Response
|
||||
|
||||
@@ -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!
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user