Skip to main content
deleted 7 characters in body; edited tags; edited title
Source Link
PЯINCƎ
  • 11.7k
  • 3
  • 25
  • 82

Magento 2 setup Setup:static-content:deploy issue with locale

I have enabled Production mode for my Magento 2 website, and when I run setup:static-content:deploy, it creates two folders - en_AUen_AU and en_US in pub/static/frontend/mytheme/en_US.

In pub/static/frontend/mytheme/, en_USen_US folder has all nessesary files generated, and en_AUen_AU folder has only one .js.js file generated. 

When I refresh my front-end, I can see all files including css and js are loaded from en_AUen_AU folder, but since this folder is emtpy, so my front-end is not displaying correctly. Then I need to manually copy everything from en_USen_US to en_AUen_AU to make front-end working.

whyWhy does system creates two folders with one has all contents, and another empty, but front-end is reading from the empty folder. 

How can I fixed this issue  ?

Magento 2 setup:static-content:deploy issue with locale

I have enabled Production mode for my Magento 2 website, and when I run setup:static-content:deploy, it creates two folders - en_AU and en_US in pub/static/frontend/mytheme/, en_US folder has all nessesary files generated, and en_AU folder has only one .js file generated. When I refresh my front-end, I can see all files including css and js are loaded from en_AU folder, but since this folder is emtpy, so my front-end is not displaying correctly. Then I need to manually copy everything from en_US to en_AU to make front-end working.

why does system creates two folders with one has all contents, and another empty, but front-end is reading from the empty folder. How can I fixed this issue?

Setup:static-content:deploy issue with locale

I have enabled Production mode, and when I run setup:static-content:deploy, it creates two folders - en_AU and en_US.

In pub/static/frontend/mytheme/, en_US folder has all nessesary files generated, and en_AU folder has only one .js file generated. 

When I refresh my front-end, I can see all files including css and js are loaded from en_AU folder, but since this folder is emtpy, so my front-end is not displaying correctly. Then I need to manually copy everything from en_US to en_AU to make front-end working.

Why does system creates two folders with one has all contents, and another empty, but front-end is reading from the empty folder. 

How can I fixed this issue  ?

Source Link
Magento Learner
  • 2.1k
  • 3
  • 41
  • 90

Magento 2 setup:static-content:deploy issue with locale

I have enabled Production mode for my Magento 2 website, and when I run setup:static-content:deploy, it creates two folders - en_AU and en_US in pub/static/frontend/mytheme/, en_US folder has all nessesary files generated, and en_AU folder has only one .js file generated. When I refresh my front-end, I can see all files including css and js are loaded from en_AU folder, but since this folder is emtpy, so my front-end is not displaying correctly. Then I need to manually copy everything from en_US to en_AU to make front-end working.

why does system creates two folders with one has all contents, and another empty, but front-end is reading from the empty folder. How can I fixed this issue?