I created a child theme for the French langage. I now need to translate it.
How can I do it from magento dashboard?
You need to create .csv file under below path:
Now add content like as below example under csv file:
"Add to Cart","Zum Warenkorb hinzufügen" "Add to Compare","Hinzufügen um zu vergleichen" "Add to Wishlist","Zum Wunschzettel hinzufügen" "Additional Product Info","Zusätzliche Angaben zum Produkt" "Address","Adresse" "Address %1 of %2","Adresse %1 von %2"
Now run commands so changes will reflect:
php bin/magento setup:static-content:deploy
Or you can refer below link as well :
It may help you!
Problem Solved? Please click on 'Kudos' & Accept as Solution!
I think instead of coding for this functionality you must integrate a third-party extension for your Magento 2 Store.
The best suggestion is to integrate Google Language Translator for Magento 2 stores that help your customers to translate language as per their desire.
If it helps then accept it as a solution by hitting the kudos button.