-
Notifications
You must be signed in to change notification settings - Fork 219
Lazy load missing translation files #5112
Lazy load missing translation files #5112
Conversation
Size Change: 0 B Total Size: 1.11 MB ℹ️ View Unchanged
|
Given you're loading lazy loaded translation, this should also include Cart inner blocks. |
Thanks for pointing this out. Initially, I thought to spin up a separate PR for adding the cart translation files. But shipping them with this PR is a good suggestion, as the checkout and the cart block go hand in hand. I just adjusted the PR based on your feedback, @senadir. |
33840ce
to
bcbcad8
Compare
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 @nielslange - this isn't working for me, I've followed the steps and in the editor everything is in Spanish, but the front-end of my cart/checkout, besides the input labels and shipping options, is still in English. Any ideas on what I might be missing? I've saved the page too.
Also, just a note on the testing notes here, I think you should remove the steps about checking out trunk and verifying the bug, leave only the steps to verify the fix.
I forgot to mention that you need to update the translations files via
Thanks for suggesting this. I've updated the description of this PR and will only point out how to test a fix in the future, and not how to reproduce the initial bug. |
Re-tested and it worked 🙌🏼 |
* Lazo load missing translation files * Lazy load cart translation files
* Lazo load missing translation files * Lazy load cart translation files
Fixes #5005 | Related #5106
Screenshots
Spanish: Terms and conditions
German: Shipping address description
Testing
WP Admin → Dashboard → Translations → Update Translations
.Additional notes
Kindly note that I also added
"lint:php-fix": "composer run-script phpcbf ./src",
topackage.json
so that I could fix linting problems within PHP files.Changelog