I am translating my Magento 2 website. I would like to keep English for the admin pages, but use another language for the storefront (i.e. the pages customers see). This should mean there will be far fewer phrases to translate, as the admin pages will remain in English.
I am using the Magento command-line tool to generate the translation dictionary:
magento i18n:collect-phrases -o "/var/www/html/magento2/tr_TR.csv" -m
This outputs phrases used on the entire site - i.e. storefront AND admin pages. I would like it to output only the phrases used on the storefront.
Does anyone know if this possible?
i18n:collect-phrases
command to just find the phrases that are used on the storefront. From the docs it looks like there isn't such an option. Maybe I could go through each module and runi18n:collect-phrases
on its sub-directories, but don't run is on the 'view/adminhtml' sub-directory. I could then concatenate the csv files that are generated. Do you think that would work?