From 38e2862cbf43d483e9977a747383f62173701df7 Mon Sep 17 00:00:00 2001 From: Thomas Da Silva Date: Thu, 22 Oct 2026 10:56:24 +0200 Subject: [PATCH] fix(translations): load the back-office catalogs under the default-twig domain --- CHANGELOG.md | 1 + Config/module.xml | 2 +- .../{default => default-twig}/en_US.php | 2 +- .../{default => default-twig}/fr_FR.php | 2 +- .../CreditNote/hook/main.footer-js.html.twig | 4 +- .../hook/order-edit.product-list.html.twig | 6 +- .../CreditNote/hook/order.edit-js.html.twig | 4 +- .../include/credit-note-table.html.twig | 42 +++--- .../credit-note-free-amount.html.twig | 14 +- .../includes/credit-note-js.html.twig | 2 +- .../includes/credit-note-modal.html.twig | 22 ++-- .../ajax/credit-note-modal.html.twig | 120 +++++++++--------- .../default-twig/credit-note-list.html.twig | 60 ++++----- tests/Unit/TranslationCatalogTest.php | 28 +++- 14 files changed, 167 insertions(+), 142 deletions(-) rename I18n/backOffice/{default => default-twig}/en_US.php (98%) rename I18n/backOffice/{default => default-twig}/fr_FR.php (98%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 472b997..cc52eb4 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # Unreleased +- The back-office screens are translated again: their labels used the `creditnote.bo.default` domain, which the kernel stopped loading once the Smarty back-office (`templates/backOffice/default/`) was removed, since it registers a `.bo.