-
Notifications
You must be signed in to change notification settings - Fork 27
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
Magento 2.3.4 JS-Translations fall back to default store language #47
Comments
cc @adifucan - any ideas? |
Update: After I reverted most changes of the given commit, it works again. |
I confirm that JS translations with multistore setup and different languages do not work with Baler enabled. Looking into this issue. |
@DrewML Looks like the main reason for this issue is that non-US locale dictionaries are merged into US For example, I have 2 stores with 2 locales: US & DE. After setting up |
Thanks for the report @jhruehl, and thanks for digging in @adifucan. Based on what @adifucan showed me, I believe I know the root cause and how we regressed this. BeforeIn Magento core, we used to fetch This had the unfortunate problem of race conditions, though, since AfterOnce the fix was made in core, ProblemThe problem here is a short cut that I took in the code to save time (execution time and development time). Similar to how the Unfortunately, we're not doing anything special to handle SolutionsI can think of 2 possible solutions. One is fast, one is thorough. Fast Thorough |
For the Fast solution mentioned above, we can take care of the ignore in |
@DrewML please go on with the Fast solution or make the exclude list somehow configurable. PS: Today I debugged "the endless loop" issue with our theme, and I think it fails because
In Once the file is created, baler continues and finishes the build. So, I assume, reading file exception/error handling is not fine. |
@tdgroot submitted (and I merged) a PR that excluded |
Edit by @DrewML: Bug has been fixed, but a more thorough solution should still be implemented. See later comments in thread for more details
Original Issue
In a multistore setup with different languages, some translations like for "Total" in checkout cart or the ones for the "add to cart" button, just after clicking it, fall back to the ones given for the default store view.
This only happens with the Baler module being enabled.
A colleague of mine debugged it to magento/module-translation/view/base/web/js/image-translation-dictionary.js
This was introduced in the following commit:
magento/magento2@71c781d
Which was seen as a resolution for
#13
The text was updated successfully, but these errors were encountered: