How to install a language pack in Magento 2?

前端 未结 3 670
一整个雨季
一整个雨季 2020-12-31 10:30

I tried to follow the instructions from https://mage2.pro/t/topic/270 and http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-i18n.html#config-cli

3条回答
  •  [愿得一人]
    2020-12-31 11:22

    You can buy it and install it :)

    composer config repositories.atconnect composer https://connect20.aveo-trade.cz composer require atconnect/magento-two-language-de-de

    We use this composer package structure: magento-two-language-de-de/composer.json

    {
        "name": "atconnect/magento-two-language-de-de",
        "description": "Magento 2.0.0: de_DE",
        "version": "2.0.0.2-stable",
        "license": [
            "proprietary"
        ],
        "type": "magento2-language",
        "autoload": {
            "files": [
                "registration.php"
            ]
        }
    }
    

    magento-two-language-de-de/language.xml

    
    
    
        de_DE
        atconnect
        magento-two-language-de-de
    
    

    magento-two-language-de-de/registration.php

    magento-two-language-de-de/de_DE.csv

    "1 Hour","1 Stunde",module,Magento_AdminNotification
    "12 Hours","12 Stunden",module,Magento_AdminNotification
    "2 Hours","2 Stunden",module,Magento_AdminNotification
    "24 Hours","24 Stunden",module,Magento_AdminNotification
    "6 Hours","6 Stunden",module,Magento_AdminNotification
    

提交回复
热议问题