-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[GraphQl] Exception are not translated to store scope. #31351
Comments
Hi @Hexmage. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. Please, add a comment to assign the issue:
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
Having the same issue, can confirm for Magento 2.4.1. |
This works as a temporary solution: https://stackoverflow.com/questions/61770306/while-working-with-the-magento-2-graphql-it-seems-that-the-string-translation-do |
I'm experiencing the same issue on Magento 2.3.4 and the patch on https://stackoverflow.com/questions/61770306/while-working-with-the-magento-2-graphql-it-seems-that-the-string-translation-do seems not to be working |
Hi @shikhamis11. Thank you for working on this issue.
|
It only seems to translate to the default store locale so if you have multiple locales it breaks. |
Working version of the plugin at https://stackoverflow.com/questions/61770306/while-working-with-the-magento-2-graphql-it-seems-that-the-string-translation-do |
@Hexmage when I patch the GraphQL controller the translation works at store level too. In that case there is no need to determine the correct language. |
@rikwillems I determine the correct language because it can be different for each storeview. The original fix only looked at the locale set at the highest level. So if you had multiple storeviews with different locales it didn't work. |
@sidolov @sivaschenko seems like quite an important issue for single-page applications, like PWA, or by using GraphQL on the frontend and showing exceptions to users. |
@ihor-sviziev I agree. It's quite an important bug since multi-store and multi language features are already there at pwa studio with the release of 2.4.2. This should be addressed soon. |
@gabrieldagama And by putting the burden of translations on the frontend application, you'll increase it's size which you are trying to prevent especially if it will be running client side. |
In my case I'm reading the cart/quote items that have custom made options. The labels of these options were not translated which doesn't make any sense, also not regarding PWA. My fix is:
|
❌ Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.magento.com/browse/AC-1946 |
❌ Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.magento.com/browse/AC-1946 |
1 similar comment
❌ Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.magento.com/browse/AC-1946 |
Is this fixed? In which magento version? |
2.4.4 - you just have to wait for it |
Hi, |
This issue is still present for 2.4.7. I see changes but they does not work |
Preconditions (*)
Reproduced on
Steps to reproduce (*)
Expected result (*)
Actual result (*)
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
The text was updated successfully, but these errors were encountered: