4

I am working on a Magento-2 website which is based on German language.

How to install and use new language package for German language in Magento2.

Which package is best for German language?

Any one have an idea about it. Any help is really appreciated.

6 Answers 6

9

I have done by just using below command for it

composer require splendidinternet/mage2-locale-de-de

php bin/magento setup:upgrade

php bin/magento setup:static-content:deploy de_DE

Note : commands need to be run from your magento root.

More info : Magento 2 German LocalePack de_DE

It's works for me.

4
  • You can add your extra translation for German language to app/i18n/splendid/de_DE/de_DE.csv. Commented Sep 19, 2017 at 10:05
  • Have you installed by command line? Commented Sep 19, 2017 at 10:51
  • Have you setup upgrade or deployed static content? And current store language must be German. Also deploy content with pass language like php bin/magento setup:static-content:deploy en_Us de_DE. Commented Sep 19, 2017 at 11:00
  • As per my suggestion, You need to uninstall module from vendor and install it by manually. Commented Sep 19, 2017 at 11:09
4

Package link

To install it:

  1. extract and copy into /app/i18n/splendid/de_DE/
  2. Remove pub/static/*
  3. Run Command using CLI:

    php bin/magento setup:static-content:deploy de_DE
    php bin/magento setup:upgrade
    
  4. Remove var/*

  5. Run php bin/magento setup:di:compile

0

Here is a link to Magento's community engineering projects and there are also translation repositories:

https://github.com/magento-l10n

From there you can check the name of the locale. For example language-es_ES

Then you can run this:

composer require community-engineering/language-es_ES
bin/magento cache:clean

And of course also change the locale in Magento admin settings.

Here is an article from where I found this solution:

https://fooman.com/blog/language-packs-for-magento-2.html

0
A header Another header
First row
Second row
    You can not use Markdown in here.

The $ character is just a shortcut for window.jQuery.

Create a blockquote by prepending “>” to each line.

Other formatting also works here, e.g.

  1. Lists or
  2. Headings:

Quoted Heading

0

Here is a detailed guide on how to install and configure a new language pack in Magento 2, specifically for German:

To install a German language pack via Composer, follow these steps:

Open SSH or Terminal: Access your Magento 2 root directory through SSH.

Run the Composer Command: If you choose Mageplaza, for example, run the following command to install the German language pack via Composer:

composer require mageplaza/magento-2-german-language-pack:dev-master

You can replace mageplaza/magento-2-german-language-pack with another package if you are using a different provider.

Update Magento: Once the language pack is installed, run the following commands to update Magento:

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy de_DE

The de_DE is the code for German (Germany). If you are installing a language pack for a different variant of German, use the respective locale code.

Clear Cache: Clear Magento’s cache to ensure the new language pack is applied:

php bin/magento cache:clean
php bin/magento cache:flush
-1

I need some help to setup chinese language on my magento 2.4 (VPS hosting) I want to use composer method  like mentionned here: https://github.com/mageplaza/magento-2-chinese-language-pack But i dont know in which folder of my server i should install the language pack and execute first step : ``` composer require mageplaza/magento-2-chinese-language-pack:dev-master mageplaza/module-smtp

Is it to  /var/www/html/magento/app ( i dont have i18n file under app)
under app i have code, design, etc, htaccess, autoload.php, boostrap.pho
or directly to root, under root i have composer-setup.php,default.confback,...
Please check the screen shot of my server ( file directory) and screen shot when i connect to server using SSH (putty)
Thanks
[![enter image description here][1]][1]

[![enter image description here][2]][2][![enter image description here][3]][3][![enter image description here][4]][4][![enter image description here][5]][5][![enter image description here][6]][6][![enter image description here][7]][7][![enter image description here][8]][8]
[![enter image description here][9]][9][![enter image description here][10]][10][![enter image description here][11]][11][![enter image description here][12]][12]


  [1]: https://i.sstatic.net/JHYHO.jpg
  [2]: https://i.sstatic.net/A093q.jpg
  [3]: https://i.sstatic.net/tfcFc.jpg
  [4]: https://i.sstatic.net/NRPFF.jpg
  [5]: https://i.sstatic.net/AIaMF.jpg
  [6]: https://i.sstatic.net/Yz0hO.jpg
  [7]: https://i.sstatic.net/FOcSV.jpg
  [8]: https://i.sstatic.net/J3bYd.jpg
  [9]: https://i.sstatic.net/mBiVJ.jpg
  [10]: https://i.sstatic.net/Ai8UO.jpg
  [11]: https://i.sstatic.net/ZCgqo.jpg
  [12]: https://i.sstatic.net/PQBd1.jpg

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.