This module will allow you to grab translation files with the ability to exclude already translated ones.
Magento 2 platform:
Tested on Magento v2.3.3 and v2.2.10 (will require at least v2.2 from you)
Run
composer require underser/module-translation-helper
./bin/magento setup:upgrade
This module will provide you i18n:translation-helper command, run
./bin/magento i18n:translation-helper --help
to see possible params and their meaning
./bin/magento i18n:translation-helper --locale fr_FR --output ./var/fr_FR.csv --all
will scan whole magento directory, and create fr_FR.csv file inside var folder. This file will contain all phrases that not translated for fr_FR locale
./bin/magento i18n:translation-helper --locale fr_FR --output ./var/fr_FR.csv ./app/code/Vendor/Module
will scan only app/code/Vendor/Module, and create fr_FR.csv file inside var folder. This file will contain all phrases that not translated for fr_FR locale
MIT © 2019 Roman Sliusar