As said in the previous reply:
you can’t add textdomain declaration within gettext filter
That means it could not be tracked by WPML out of the box. It might be technically possible but would require additional custom development which is outside the scope of our support. You might want to contact our trusted partners who caters X setup and customization needs. Please see https://community.theme.co/custom-development/
Thank you for understanding.