General Magento Support - M2 - How to Translate a Magento 2 Extension (Inline Tool Method)


How to Translate a Magento 2 Extension (Translate Inline Tool Method)

Back to User Guide

It's possible to translate both Front-End and Back-End labels of a Magento 2 Extension/Module. In this guide we cover the Translate Inline File method.


Step-by-step

1. Disable Block, Page and Translation Caches

It's recommended that Magento block cachepage cache, and translations cache are disabled before using the Translation Inline Tool. To do so from the Back-End, head to Admin Panel → System → Cache Management.

Navigation to Cache Management settings
Navigation to Cache Management settings

Here select the three relevant cache types and disable them.

Choosing needed cache types
Choosing needed cache types

2. Enable Translate Inline

Now, head to  Admin Panel → Stores → Settings → Configuration → Advanced → Developer → Translate Inline.

Translating inline
Translating inline

Choose if you'd like to translate the Storefront (Front-End) and/or Admin (Back-End).

3. Select Desired Element

The tool will surround each text element with a red outline and will add a button with a book icon near it.

Selecting needed element
Selecting needed element

Click on the icon.

4. Translate Element

A pop-up will trigger with information about that particular text element. Add a custom label, as shown, and choose if it's Store View Specific.

Translating the element
Translating the element

Now, repeat steps 3 and 4 for each element.

5. Disable Translate Inline

Once you have translated the desired elements, disable the Translate Inline feature, so that the interface goes back to normal.

6. Re-enable Magento Caches

Re-enable the Magento caches disabled on the first step.



Find other Magento products at the CreativeMinds Magento Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.