-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Update get_product_data to send request with a locale query param for translation #34461
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
Conversation
Test Results SummaryCommit SHA: c123f41
To view the full E2E test report, click here. To view all test reports, visit the WooCommerce Test Reports Dashboard. |
156a76f to
0ecb3cf
Compare
0ecb3cf to
1b0939a
Compare
rjchow
left a comment
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.
This looks good! Thanks for working on these i18n details, it makes the product look a lot more polished
BTW - I had to clear the _transient_wc_onboarding_product_data option if I changed the language after installing woocommerce. The transient doesn't get invalidated upon language change.
I wonder if we should set the locale as part of the transient and re-fetch it it doesn't match?
1b0939a to
50af00e
Compare
Sounds good! @rjchow I've updated the transient format in c123f41. |
rjchow
left a comment
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.
Fantastic work, thank you!
|
Hi @chihsuan, thanks for merging this pull request. Please take a look at these follow-up tasks you may need to perform:
|
All Submissions:
Changes proposed in this Pull Request:
This PR updates the
get_product_datamethod to get translated contents from WCCOM.How to test the changes in this Pull Request:
Settings > GeneralEspañol(i)Other information:
pnpm changelog add --filter=<project>?FOR PR REVIEWER ONLY: