Proper way to package translation files with a custom module?
potx itself isn't directly available as a Drupal 8 module, but it doesn't need to.

It also works as a drush extension and can be run on Drupal 8 code. Haven't tried it if providing a translations folder still works, but I think so.

So, still works pretty much the same as in Drupal 7.