Skip to main content

How to translate an affiliate into different languages

The extension uses the same logic for translations as default Magento. More details: https://developer.adobe.com/commerce/frontend-core/guide/translations/

Our i18n files should be located at: vendor/mirasvit/module-affiliate/src/Affiliate/i18n/

  1. Create a separate file for your language (en_US.csv, de_DE.csv). The names for all languages can be found via this command:

    php -f bin/magento info:language:list
  2. Override the strings in your dictionary file:

    "Original line" , "Translated line"
  3. Run these commands to see the changes:

    php -f bin/magento setup:static-content:deploy
    php -f bin/magento cache:flush
  4. The custom themes will be displayed instead of the default for your language.