-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Fix #25243 #25359
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 #25243 #25359
Conversation
Hi @korostii. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
7ca6415
to
2596ca7
Compare
Hi @korostii. |
Hi @engcom-Alfa so we've looked into these jasmine tests as used by Magento with a colleague of mine, as guided by the devdocs article and we can't seem to figure out if it supports frontend theme tests, at all (and this PR deals with JS used on frontend). Any hints/directions? |
@korostii You can try |
…o korostii-patch-25243
HI @krzksz could you please review new changes ? |
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.
Hey, thanks for the update! Unfortunately there is still this thing I mentioned in #25359 (review) which should be taken into account in my opinion.
Pull Request state was updated. Re-review required.
@krzksz could you please take a look ? |
Hi @krzksz, thank you for the review.
|
Hi @korostii, thank you for your contribution! |
Description (*)
JS version of
__('Carrier with such method not found: %1, %2', 'one', 'two')
should produce the message of'Carrier with such method not found: one, two'
JS component receives a pre-translated message template yet parameters are sent separately:

And then the messages.js assumes that resulting
messageObj
property names should match the varNames in the message template string (discounting the first%
symbol) which happens to be off by one if the varNames are integers.Worth mentioning: in most cases they are numbers, however support for string varNames seems to be implied and even relied on, for example there a translated string like the following:
You can check the status of your order by <a href=""%account_url"">logging into your account</a>.
.Solution: simply decrement varName (as long as it's a number).
Fixed Issues
Manual testing scenarios
Please see #25243 for detailed steps.
Contribution checklist (*)