Skip to content
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

js-translation.json generation broken in 2.1.4 #8459

Closed
thomvanderboon opened this issue Feb 8, 2017 · 5 comments
Closed

js-translation.json generation broken in 2.1.4 #8459

thomvanderboon opened this issue Feb 8, 2017 · 5 comments

Comments

@thomvanderboon
Copy link

thomvanderboon commented Feb 8, 2017

After update from 2.1.2 (via composer) to 2.1.4 only empty js-translation.json files are generated. It worked great under 2.1.2.

Preconditions

  1. Install 2.1.4
  2. Use f.e. the Magento Crowdin Translation package to translate your site

Steps to reproduce

  1. From document root run the following commands
cd app/i18n/test/nl_nl
/bin/rm source_nl_NL.csv
wget http://107.170.242.99/var/2.1.0/source_nl_NL.csv
cd /../../../../
#back to document root
find . -name js-translation.json -exec rm -rf {} \;
php bin/magento setup:static-content:deploy en_US nl_NL
php bin/magento indexer:reindex
php bin/magento cache:clean
php bin/magento cache:flush

Expected result

  1. Correctly generated js-translation.json

Actual result

  1. Empty js-translation.json (contains only [] )
@thomvanderboon
Copy link
Author

thomvanderboon commented Feb 8, 2017

Little bit further testing and I found a work arround. If you run the deploy command with multiple languages, it is broken: f.e.

php bin/magento setup:static-content:deploy en_US nl_NL

The js-translation.json is generated correctly if invoked as separate commands for each language. f.e.

php bin/magento setup:static-content:deploy en_US
php bin/magento setup:static-content:deploy nl_NL

@philipvandebriel
Copy link

This problem started from 2.1.3

@andidhouse
Copy link

andidhouse commented Feb 8, 2017

Jep this is a bug since 2.1.3 - before it worked without a problem.

@hostep
Copy link
Contributor

hostep commented Feb 11, 2017

This sounds like a duplicate of #7862

@thomvanderboon
Copy link
Author

This is duplicate of #7862

magento-devops-reposync-svc pushed a commit that referenced this issue Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants