How to translate a Magento 2 extension?

How to translate a Magento 2 extension?

      Generally, an extension consists of specific elements (i.e. interface, settings display, added content) which can be translated to another language. When making a translation, as the first step, look through the module's elements in the Admin panel; some of them can be edited on a store view scope, making it possible to translate them directly from the Admin panel.
      For the remaining parts of the module (in most cases, interface, frontend display, etc.), the translation needs to be done in the files. 
      To translate an extension, connect to your server via SFTP, navigate to app/code/Amasty/[Magento extension name]/i18n/ (vendor/amasty/magento-extension-name/i18n/ for Composer-installed modules) and download the en_US.csv file to your computer. 
      Rename the file to match the required language code (i.e. pt_BR.csv) and open it in a text editor you find convenient.
      In the file, all lines consist of two parts separated by a comma. The right part of the string should be replaced with the translated text, as follows: 

      Proceed with translating all the needed lines and save the file when finished. If the existing line you are looking for is not present in the file, it can be added and translated similarly to the rest: 

      To make the changes show, upload the file to the same path via SFTP and run the following CLI commands from the root Magento directory: 
rm -rf pub/static/*
php bin/magento set:static-content:deploy
php bin/magento cache:flush
      Some extensions have backend and storefront separated (i.e. GiftCard for backend and GiftCardAccount for storefront); please consider that when translating.  
      • Related Articles

      • How to update an Amasty extension?

        Below, you may find the instructions on installing an update to an Amasty extension. Choose the appropriate method of the extension update – via Composer or via a manual file upload. The choice of the method corresponds to the initial way the ...
      • How to uninstall an extension?

        This article describes a basic flow for extension uninstallation, not touching DB changes.       Preparation Before making any changes to your Magento instance, either live or a dev site, make sure to create backups. This way you can secure the ...
      • Can I get an older version of the extension to fit my Magento version?

               Yes, we can send an older package of the extension that might fit the given Magento version if it's not in the list of supported releases.        Kindly note that older versions of the modules may miss some features that are presented on their ...
      • Will the module work on Magento x.x?

        We provide compatibility of our modules with currently supported Magento versions (in accordance with Magento lifecycle policy). It means that Amasty modules are compatible with the latest minor Magento release (for example, 2.4) and the previous ...
      • How to install an Amasty extension?

        There are two ways of installing an extension on Magento 2. It's recommended to use one and the same installation method for all Amasty extensions. Composer installation Step 1. To download and install Magento modules, the vendor repository is ...
      • Announcements

      • Already Done in Q1'23

        New features and improvements Order Attributes v3.8.0 NEW now Order Attributes are placed on the PayPal Review Page; we added compatibility with Hyvä Theme for the module. You can find package for installing in composer suggest (Note: the compatibility
      • Roadmap | What to expect in Q1'23

        New features and improvements Improved Layered Navigation generate SEO-friendly URLs for multi-select Category filter; better speed performance of the Apply filters button; improve Category list load time. Special Promotions Pro optimize data types in
      • Already Done in Q4'22

        New Amasty services Make sure your site is well-performing with our E-commerce QA testing service. Let our specialists check various elements of your website and get the issues fixed. The service is available for any e-commerce platform (Magento, Shopify,
      • Roadmap | What to expect in Q4'22

        New features and improvements Elastic Search better performance of synonyms; REST API support. Product Labels enhanced extension performance with a lot of products on the page. Blog Pro posts migration from one Magento instance to another; email notifications
      • Already done in Q3'22

        New solutions Our new SaaS tool - Website SEO Health Check. Discover the most severe SEO mistakes which can damage your website. Available as part of Pro and Premium SEO Toolkit. New features and improvements Import and Export NEW we added the possibility