Magento 2: Cannot override translation csv
-
16-03-2021 - |
Question
I need to change the default text of the review submitted into another one. Right now, I have the default text which is "You submitted your review for moderdation" and I want it to change it in "Thanks, you submitted your review".
I tried to do it in the "standard" way, so I created the en_US.csv in the folder:
app/design/frontend/{Vendorname}/{themename}/i18n/en_US.csv
I did a deploy, cleaned cache, flushed cache, but nothing. The string is not translated.
Any suggestions?
Thanks
Solution
You can add below line in your csv file here
app/design/frontend/Vendor/Theme/i18n/en_US.csv
"You submitted your review for moderation.","Thanks, you submitted your review."
If any spell mistake is there in your text then your translation will not work.
In your case, Can you please check spelling of moderation
? You've added moderdation
that may be causing this issue.
Hope this solution will work for you!