Magento 2 Label translation showing braces

删除回忆录丶 提交于 2019-12-11 03:35:17

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!