首页 文章

Magento 2 Minicart和Checkout在 生产环境 模式下的翻译

提问于
浏览
1

我们在 生产环境 模式下遇到翻译问题 . 我们的翻译在开发人员模式下正确工作和加载,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

问题是在Minicart和结账时翻译不起作用 . 所有语言环境都加载了丹麦语翻译 .

尝试将af产品添加到购物车https://floatinggrip.com

1 回答

  • 1

    发现此问题:https://github.com/magento/magento2/issues/7862

    来自js翻译世代的Magento静态内容部署优化的错误 .

    Here is the workaround :

    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
    

相关问题