Magento 2 bug: «bin/magento setup:static-content:deploy -f <multiple locales>» does not generate a correct «js-translation.json» for the second and next locales (and my fix)

How to fix

Locate the method Magento\Deploy\Service\DeployTranslationsDictionary::deploy():

Add the following code at the beginning for the method:

/** @var \Magento\Framework\TranslateInterface $t */
$t = \Magento\Framework\App\ObjectManager::getInstance()->get(
	\Magento\Framework\TranslateInterface::class
);
$t->setLocale($locale)->loadData($area, true);