Magento 2 Label翻译显示大括号 [英] Magento 2 Label translation showing braces

查看:130
本文介绍了Magento 2 Label翻译显示大括号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

标签显示双大括号之间的多个翻译. 我在Magento 2的前端和后端都有这个问题.

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:

  • 清除并刷新了缓存
  • 重新部署静态内容
  • 将Magento 2.2.5更新为2.2.6

请查看图片以获取更多信息

Please look at the pictures for more info

Magento 2前端

Magento 2 Frontend

Magento 2后端

Magento 2 Backend

有什么想法吗?

解决方案 这不是一个很好的解决方法,但是我已经在静态前端和备份文件夹中还原了js-translation.json文件.

Solution It's not a pretty fix but I've restored both js-translation.json files at the static frontend and backup folder.

推荐答案

我遇到了同样的问题,当您没有正确禁用配置或内联翻译配置时,就会出现此问题.

I had the same issue, this issue comes when you did not properly disable the configuration or inline translation configuration.

请检查内联翻译或任何其他配置,并确保正确禁用适用于特定模式(开发人员)的配置,然后再进行更新.

please check the inline translation or any other configuration and make sure you disable the configuration properly which applies to specific mode(developer) and before updating.

之后,请运行以下命令

$rm -rf var/cache/* var/view_processed/* generated/code/*
$php bin/magento setup:upgrade
$php bin/magento setup:static-content:deploy
$php bin/magento setup:di:compile
$php bin/magento cache:clean
$chmod 777 -R app/ var/ generated/ pub/

这篇关于Magento 2 Label翻译显示大括号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆