How is a JavaScript translation dictionary («js-translation.json») generated on the static assets deployment («bin/magento setup:static-content:deploy»)?

The previous analysis (written 2 years ago): How is js-translation.json file generated?

See also: