In order to build this CSV app/code/Vendor/Module/i18n/en_US.csv
, I want to get an array from my module with all the translation-ready strings from all files types (.php, .phtml, .js, .xml).
.php & .phtml
__('string')
.js
$.mage.__('string')
.xml
<group id="general" translate="label" type="text" sortOrder="120" showInDefault="1" showInWebsite="1" showInStore="1">
and
<field id="showmethod" translate="label" type="select" sortOrder="280" showInDefault="1" showInWebsite="1" showInStore="0">
and
<argument name="header" xsi:type="string" translate="true">Report Date</argument>
and
<item name="label" xsi:type="string" translate="true">CSV</item>
...
How can I get a list (array) of all the translation-ready strings from a module for creating a CSV file?