Fix raw JSON blob showing on Subscriptions screen (#14099)

The `orders.customer_credit_service` locale keys added by PR #13963
were placed under an `orders:` namespace in locale files. In en.yml
this created a duplicate `orders:` key, causing YAML to override the
existing `orders: "Orders"` string with the hash — so `t('orders')`
returned the hash instead of "Orders", showing raw JSON on the screen.

Move translations to `customer_credit_service:` at the top level and
update the service's `translation_scope` to match.

Fixes #14099

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Greg Austic
2026-03-25 20:18:30 -04:00
committed by Maikel Linke
parent c274c19e96
commit 6a6a1298df
5 changed files with 17 additions and 21 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

@@ -5037,8 +5037,7 @@ en_GB:
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

@@ -5116,8 +5116,7 @@ fr:
credit_payment_method_missing: Le mode de paiement par crédit est manquant.
no_credit_available: Aucun crédit disponible
not_enough_credit_available: Crédit disponible insuffisant
orders:
customer_credit_service:
no_credit_owed: Aucun crédit dû
credit_payment_method_missing: Le mode de paiement par crédit client est manquant. Veuillez vérifier la configuration.
refund_sucessful: Remboursement effectué avec succès !
customer_credit_service:
no_credit_owed: Aucun crédit dû
credit_payment_method_missing: Le mode de paiement par crédit client est manquant. Veuillez vérifier la configuration.
refund_sucessful: Remboursement effectué avec succès !

View File

@@ -5070,8 +5070,7 @@ fr_BE:
credit_payment_method_missing: Le mode de paiement par crédit est manquant.
no_credit_available: Pas de crédit disponible
not_enough_credit_available: Pas assez de crédit disponible
orders:
customer_credit_service:
no_credit_owed: Aucun crédit dû
credit_payment_method_missing: Le mode de paiement par crédit client est manquant. Veuillez vérifier la configuration.
refund_sucessful: Remboursement effectué avec succès !
customer_credit_service:
no_credit_owed: Aucun crédit dû
credit_payment_method_missing: Le mode de paiement par crédit client est manquant. Veuillez vérifier la configuration.
refund_sucessful: Remboursement effectué avec succès !