I found my answer, in wp-invoice-ultimate.php I’ve changed this line:
define ( 'WPIU_LANG', 'WPIU_LANG' );
to
define ( 'WPIU_LANG', 'wp-invoice-ultimate' );
Then I put the translation file with the name wp-invoice-ultimate-es_ES.mo in the languages folder and it works.