I have a custom theme in magento2.1. I have created a category and added one product under it. When I go to the category page to view that product in list, I got an error saying,
1 exception(s):
Exception #0 (Exception): File "/i18n/en_US.csv" does not exist
Exception #0 (Exception): File "/i18n/en_US.csv" does not exist
From the error I understood that the language file is not existing. So I copied the language folder, ie : i18n folder from
vendor\magento\theme-frontend-blank
and pasted it in my
app\design\frontend\custom\theme
Then I deployed the static files. Still the error is showing. And homepage is working fine. Can any one please help me to sort it out?
For
i18nYou can make it like thisMake folder named with
i18ninappfolderMake sub folder same name as your theme like
customini18nfolderMake language pack folder(s) in
i18n -> customfolder likeen_usoren_gbNow your folder structure will like this
app/i18n/custom/en_us/Now in this your language package folder make below files, all files will be in this folder structure
app/i18n/custom/en_us/app/i18n/custom/en_us/composer.json
app/i18n/custom/en_us/language.xml
app/i18n/custom/en_us/registration.php
After this put your en_US.csv in your language pack folder
After than run this following commands
php bin/magento setup:upgradephp bin/magento setup:static-content:deployphp bin/magento cache:cleanHope this will helps you