I have a custom module. In this module all strings are in English. However, my website is in French and when installing the custom module, I'd like the French strings to be picked up and imported automatically.
What's the best way to generate and then package the
.fr.po translation file with my custom module?
(With D7, I would use potx to generate the
.po file for my module, then I'd put the file under
sites/all/modules/custom/MYMODULE/translations. But potx no longer exists for D8 and the d.org documentation isn't very helpful.)