-
Notifications
You must be signed in to change notification settings - Fork 9.4k
js-translation.json generation incomplete #9073
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
Comments
I have the same issue with ar-json - not always Arabic files are generated in the JSON. We expect that updating the CSV file should also update the Knockout JS files and Magento translation but it does not - this include local storage translation API |
Have the same issue with a clean Magento 2 install with a valid language pack. It's missing a lot of translations. |
I've tested and problem persists also in Version 2.1.6 I found the problem mostly in Checkout |
Same problem here. I used the workaround explained here: #2056 (comment) |
Also having trouble with this situation. Especially with the "Place order now" button. Can't get it translated. Not using CSV, not using complete language packs and inline translation doesn't work either. |
I just had it in developer mode too. This happens so often now that I remove the js-translation.json and run setup:static-content:deploy for my local language every time a translation doesn't work. |
We have created a work-around with a custom script which converts all |
@PascalBrouwers Thank you for the information, but that didn't work for me either. It's both in dev mode and in prod mode. I am wondering; does this issue occur in the checkout too? For me it's only in the checkout. Do you use a custom OneStepCheckout by for example Hungersoft or Magestore? |
We do have Magestore OSC, but it doesn't matter where the translation is when the entire js-translation.json file is empty :) |
Same issue here, |
@cjohansson please can you share this solution of making a custom json file as I was considering doing the same. I would really appreciate it - is it a module or snippet that you can opensource? |
generated proper |
@AlexandreKhayrullin, thank you for your report. |
Any update on this issue? |
A problem in 2.3 it seems. |
I'm working on a Persian language project and have same issue experience. |
Hi @engcom-Bravo. Thank you for working on this issue.
|
Hello @AlexandreKhayrullin |
Preconditions
The Magento used is the "develop" branch.
PHP: PHP 7.0.10-1+deb.sury.org~xenial+1
Steps to reproduce
Expected result
Actual result
It seems that the generation of js-translation.json is inconsistent between developer and production modes.
In production mode, the JSON either contains very few values (see js-translation.production.json in the attached ZIP file) or just an empty array. In developer mode, the JSON contains a lot more strings (see js-translation.developer.json in the attached ZIP file) , enough to make the UiComponents translatable.
js-translation.zip
The text was updated successfully, but these errors were encountered: