问题
Labels showing multiple translations between double curly-braces. I have this problem both on the front and backend of Magento 2.
This is what I've tried so far:
- Cleared and flushed the cache
- re-deployed static content
- Updated Magento 2.2.5 to 2.2.6
Please look at the pictures for more info
Magento 2 Frontend
Magento 2 Backend
Any ideas?
Solution It's not a pretty fix but I've restored both js-translation.json files at the static frontend and backup folder.
回答1:
Are you sure you have all php dependencies installed correctly?
Solution was suggested on this stackexchange thread: https://magento.stackexchange.com/questions/245516/why-are-the-admin-labels-showing-curly-braces
回答2:
I had the same issue several times, and don't know why its happening, but this solved my problem:
Manually delete generated/metadata, generated/code, var/cache, var/page_cache, pub/static (be careful not to delete htaccess files),
then run setup:upgrade, setup:static-content:deploy and cache:clean.
Hope it helps.
来源:https://stackoverflow.com/questions/53025677/magento-2-label-translation-showing-braces