2

Magento 2 different languages for website

I did exactly everything according what the guy who posted the answer said.

Basically i set the default store to English then i created a new store view and here i set the language to dutch. Somehow everything is still in English.

Any idea how this comes?

4
  • Did you install the second language or just did the steps from the answer?
    – seb
    Oct 6, 2016 at 14:42
  • I didn't install any language i just followed the steps from the answer @Klettseb
    – Kevin.a
    Oct 6, 2016 at 14:43
  • What is the best way to do this? i need a dutch language pack.
    – Kevin.a
    Oct 6, 2016 at 14:43
  • See my answer below
    – seb
    Oct 6, 2016 at 14:47

1 Answer 1

0

So you will have to install the language pack as well besides following the steps.

Language packs can be found for example here.

I just copy and paste the installation instructions:

Download file corresponding to your language. It is a single file, that contains translations and module context. Easiest to download it to your installation root directory.

Now run the following command:

bin/magento i18n:pack -m replace -d source_[lang_code].csv langpack [lang_code]

where [lang_code] is language code like pl_PL.

As a result, a directory langpack will be created that contains proper structure of language files for your installation.

Copy it over to your Magento installation and the translations should be visible. If not, run the following commands to clear cache:

php bin/magento setup:static-content:deploy [lang_code]
php bin/magento indexer:reindex
php bin/magento cache:clean
php bin/magento cache:flush

Note: additional directory i18n contains strings for which the module could not be found in your installation. This file can be skipped.

Another useful source here

Hope that helps you

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.