Please help me create a new language. There is no Azerbaijani language in the database of Magento.

  • Do you want to add translations or new currency/decimal delimeter/etc..? – Andrey Konosov Jan 3 '18 at 10:58
  • Not only on the cover of the site. – Cyber_Hacker Jan 3 '18 at 11:02
  • I created categories, there I can choose different languages. But when I turn to other languages, the site does not translate. – Cyber_Hacker Jan 3 '18 at 11:04
  • prnt.sc/hvhaoq – Cyber_Hacker Jan 3 '18 at 11:11

Currently, I can't find any AZ language pack for Magento. Thus, there is no easy way to add support of AZ locale. If you are a native speaker, you can translate any or all words and phrases in the Magento application using a language package:

  • Collect all phrases using collect CLI command ./bin/magento i18n:collect-phrases -o "/var/www/html/magento2/az_AZ.csv" -m
  • Translate the second column of csv file
  • Pack the dictionary using pack CLI command ./bin/magento i18n:pack /var/www/html/magento2/az_AZ.csv -d az_AZ
  • Create a directory for the language package like `/var/www/html/magento2/app/i18n/YourVendor/az_AZ
  • Add composer.json, language.xml and registration.php to this directory

For more detailed steps refer to any guide about language packages in Magento 2. For example - http://devdocs.magento.com/guides/v2.2/config-guide/cli/config-cli-subcommands-i18n.html

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.