Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Translation 微型购物车中的Magento 2翻译和生产模式下的结帐_Translation_Magento2_Production - Fatal编程技术网

Translation 微型购物车中的Magento 2翻译和生产模式下的结帐

Translation 微型购物车中的Magento 2翻译和生产模式下的结帐,translation,magento2,production,Translation,Magento2,Production,我们在生产模式下遇到了翻译问题。 我们的翻译在开发者模式下正常工作和加载,MaterializationStrategy设置为Copy 当我们部署到生产环境时,我们运行以下操作: bin/magento maintenance:enable composer install bin/magento cache:clean bin/magento cache:flush bin/magento setup:upgrade --keep-generated bin/magento setup:di:

我们在生产模式下遇到了翻译问题。 我们的翻译在开发者模式下正常工作和加载,MaterializationStrategy设置为Copy

当我们部署到生产环境时,我们运行以下操作:

bin/magento maintenance:enable composer install bin/magento cache:clean bin/magento cache:flush bin/magento setup:upgrade --keep-generated bin/magento setup:di:compile bin/magento setup:static-content:deploy da_DK de_DE en_US es_ES fr_FR it_IT nl_NL nb_NO sv_SE fi_FI bin/magento cache:clean bin/magento cache:flush bin/magento maintenance:disable bin/magento维护:启用 编写器安装 bin/magento缓存:清除 bin/magento缓存:刷新 bin/magento安装程序:升级--保持生成状态 bin/magento安装程序:di:编译 bin/magento设置:静态内容:部署数据块数据块数据块数据块 bin/magento缓存:清除 bin/magento缓存:刷新 bin/magento维护:禁用 问题是,在微型购物车和结账期间,翻译不起作用。丹麦语翻译加载到所有地区

尝试在上向购物车添加af产品发现此问题:

js翻译版本上Magento静态内容部署优化的Bug

以下是解决方法:

php bin/magento setup:static-content:deploy --theme=Magento/luma en_US
php bin/magento setup:static-content:deploy --theme=Magento/luma nl_NL
php bin/magento setup:static-content:deploy --theme=Magento/luma fr_FR
替换为您的主题,不要忘记后端主题:

php bin/magento setup:static-content:deploy --theme=Magento/backend en_US