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:
Now, define your word at the place of use:
<?php echo __('Product Information');?>
Be the first to comment.