Webkul
Services
Technologies Bagisto QloApps
iOS Android SAP BigCommerce Wix
Trusted by
Samsung Intel Toyota Walmart Disney Nokia Nestlé Decathlon
See all customers
Back to Top
DOC

How to Add Translation.csv in Magento 2

Magento-Code-Snippet-5-2

To add a translation CSV file in magento2, you just need to add a folder named:

“i18n” inside your module’s folder, i.e.

app/code/Webkul/Test/i18n

Then create a CSV file with the name of the language code.

for example:

for English (United States) => en_US.csv

French (Canada)=>fr_CA.csv

Inside the CSV file you just need to add words that you want to translate, in the following manner:

“<word in English language>”,”<word in language to convert>”

for example:

Screenshot_1

Now, define your word at the place of use:

<?php echo __('Product Information');?>
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home