-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Fix translation retrieval #25626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix translation retrieval #25626
Conversation
Hi @brosenberger. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
Co-Authored-By: Dmytro Cheshun <[email protected]>
Hi @dmytro-ch, thank you for the review. |
Hi @brosenberger. Could you provide more details on how to reproduce this issue? Thanks! |
@engcom-Alfa : i have js-bundling enabled for the static content deploy and following bundle.js is generated for the Magento_Checkout/template/summary/cart-itmes.html (part of it:)
the original translation regex does not catch magento2/app/code/Magento/Checkout/view/frontend/web/template/summary/cart-items.html Line 13 in f6405d5
<translate args="'Your cart'"/> to a item count specific version, but the pattern would not be applied either as it gets escaped to <translate args=\"'Your cart'\"/> respectivelly <translate args=\"'Item in Cart'\" i...
|
Hi @brosenberger . |
…fix-translation-retrieval # Conflicts: # app/code/Magento/Translation/Test/Unit/Model/Js/DataProviderTest.php
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @brosenberger, could you please update your working branch with the latest changes from 2.4-develop
and resolve merge conflicts?
Thank you!
… fix-translation-retrieval � Conflicts: � app/code/Magento/Translation/Test/Unit/Model/Js/DataProviderTest.php
@magento run all tests |
Hi @dmytro-ch, thank you for the review. |
✔️ QA Passed |
Hi @brosenberger, thank you for your contribution! |
Description (*)
Translationstrings are collected in the static content deploy step with configurable regex-patterns (for the js-tranlsations.json-file - all translations available within a js context (js, ko-templates)).
when bundling of js files is enabled, all html-ko templates do get bundled and attribute-quotes do get escaped. this breaks the current js-file retrieval pattern for translation args
Manual testing scenarios (*)
Contribution checklist (*)