4

Using below command I have created the csv file for translation. I set the settings for locale in admin panel. After running upgrade and deploy command, I get 404 for all css and js files. In Pub/static I see still files are generated under en_US! What step is missing here?

php bin/magento i18n:collect-phrases --output="app/design/frontend/Vendor/childtheme/i18n/sv-SE.csv" /app/design/frontend/Vendor/maintheme/

Edit:

Running below did not help either :(

php bin/magento setup:static-content:deploy sv_se
1
  • you can just run command, php bin/magento setup:static-content:deploy en_US sv_SE Commented Oct 28, 2016 at 7:49

2 Answers 2

1

You have to just run below command,

You have to replace sv-se to sv_SE

php bin/magento setup:static-content:deploy sv_SE

0
0

Remove everything under pub/static Remove var/cache/* var/generation/* var/view_preprocessed/*

Flush cache and issue command

php bin/magento setup:static-content:deploy

you can then reissue

php bin/magento setup:static-content:deploy sv_SE

Now everything should work as normal. On side note if you're in development you should setup Grunt which makes it real easy to clear and deploy files further read here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.