1

My current Magento 2.2.0 site in displayed in English, I have changed the language to Danish in the admin panel but that has not changed anything. The option for Danish language comes standard with Magento.

I followed this guide: https://github.com/mageplaza/magento-2-danish-language-pack

But that has not changed anything either.

How do I change the frontend language on a Magento 2.2.0 site? This is really frustrating

Thanks!

  • Have you tried clearing your cache and running the command php bin/magento setup:static-content:deploy da_DK and have you created the Danish store view in admin ? – MGento Oct 19 '17 at 9:26
  • Hi, I've cleaned my cache, the deploy command required me to use the -f option which I then did. I haven't created a Danish store view in admin since Danish is the only language the website should be able to be viewed in, so I just changed the locale to Danish. Is that not enough? Is it required to create a seperate view? Thanks. – VirtusB Oct 19 '17 at 9:35
  • If Danish is the only language the website is using, then you don't need to create a separate store view. – MGento Oct 19 '17 at 9:51
1

To make your language pack work, you should keep the language pack files inside the language code specific library. Then only it will work.

In your case, the Danish language pack should be inside the da_DK folder. It should follow the folder structure like below.

Your-Magento-Root-Folder/app/i18n/your-name-space-in-small-letters/da_DK/

This will fix your problem. Make sure after following this folder structure, clear cache and run the static content deploy command.

|improve this answer|||||
  • I'm using Magento 2.2.0, there is not a i18n folder in app folder, I currently using a Magento default theme called Luma, there is a i18n folder in /vendor/magento/theme-frontend-luma/i18n – VirtusB Oct 19 '17 at 10:57
  • You should create the i18n folder inside the app folder. By default, the i18n folder is not there. :) and dont worry about the theme. This will work. I have reproduced your issue and verified in my local. – MGento Oct 19 '17 at 10:59
  • Ahh okay, I'll try that – VirtusB Oct 19 '17 at 11:09
  • No, it's not the name of the theme. Its the custom name space of your language packs. If you are using mageplaza's language pack, then it would be mageplaza. – MGento Oct 19 '17 at 11:11
  • Yes, thank you so much, should I remove the older incorrect installation that I did earlier? Where I used composer? – VirtusB Oct 19 '17 at 11:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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