Magento – After upgrade Magento 2 : JS-translation.json file not Generating on Production Mode

adminfrontendmagento2.2.3

When run setup:static-content:deploy command then js-translation.json not generating.

So it is creating an issue in admin to load order, customer and product grid.
File Path is

pub/static/adminhtml/Magento/backend/en_US/js-translation.json

And same file not generating on the frontend.

/pub/static/frontend/vendor/theme/en_US

Best Answer

Use this command :
bin/magento setup:static-content:deploy --theme=Vendor/Theme en_US -f
I had problem in admin panel and I ran
bin/magento setup:static-content:deploy --theme=Magento/backend en_US -f
This command created
js-translation.json
in
pub/static/adminhtml/Magento/backend/en_US/js-translation.json

Related Topic