How is js-translation.json file generated?

A more comprehensive analysis after 2 years:

See also: