I use the grep
command to search for partial phrases and then trace them back to their original module. For example, when looking for “We’ll email you an order confirmation with details and tracking info.” I ran the following command from the Magento root directory:
grep -Rl 'email you an order confirmation with' .
I did this expecting at least 2 results:
- A phtml with the raw code
- A csv translation file
And these were my actual results (xml files irrelevant):
./vendor/magento/module-checkout/i18n/en_US.csv
./vendor/magento/module-checkout/view/frontend/templates/success.phtml
./vendor/magento/module-checkout/Test/Mftf/Data/ConstData.xml
./vendor/magento/module-checkout/Test/Mftf/Test/CheckCheckoutSuccessPageTest.xml
Alternatively, if you’re running something like the i18n translation module we talked about here (Translating Magento 2 - Installing custom language pack(s)) then just search there. It all depends on what changes you’ve already made.