Generate translations catalog for Mautic plugin

Hi,

I am a developer but I would not consider myself an expert in Mautic.

Basic info

  • Mautic version 3.0.0-beta

I am developing Mautic plugin. At this point I would like to extract messages that are shown to user. In short: I need to generate ini files, with all the keys from plugin bundle.

My Question: What is a proper way to extract messages from Mautic plugin bundle (command, script or something similar)?

The documentation here: https://developer.mautic.org/#translations tells us about the required structure and from my experience this is correct. I am able to manually add keys to ini files and provide translations.

I also have been playing around with bin/console translation:update command, but even with minor tweaks I could not get the desired result.

This is one of the last things I have tried:

php bin/console translation:update /var/www/html/mautic/plugins/MauticMyBundle /var/www/html/mautic/plugins/MauticMyBundle --dump-messages --env=dev

I have not tried Transifex (https://www.transifex.com/) but since I am interested only in generated ini files I imagine this is not really relevant.

There is a couple of ways I see how can I get those keys extracted automatically, but I am asking for proper (Mautic) way to do this (maybe there is something obvious I am missing, so that is why I am asking).

Any answer much is appreciated.

Best Regards.