Translating Magento 2 - Installing custom language pack(s)

My main goal was to work out and understand the Documentation. Specifically, I wanted to understand what the following 3 commands did:

  • bin/magento i18n:collect-phrases ...
  • bin/magento i18n:pack ...
  • bin/magento i18n:uninstall ...

collect-phrases and unistall were pretty straight forward. But it was pack that had me confused because I couldn’t work out for the life of me what it was actually doing.

What it does is separate and distribute your translation file into all of the appropriate (referenced) modules within their respective “i18n” folders. Very clever.

What didn’t help was that Test Translations I was expecting to see, didn’t display. And as I mentioned above, that was thanks to the other language pack I installed previously - Which was overriding my changes.

So, at this point I’m pretty sure I understand the purpose and functions of the i18n commands.

To answer your question, I just wanted to Generate and Create my own and then try to deploy it. It shouldn’t take too long to work out how to package the pack. But there are a few ways this can be achieved such as; Module, Theme, Pack.

I’ll come back to you on that one when I have another slot of free time to investigate.