Spanish translation

Hello,

I'd like to add an Spanish translation for this module. Hope you find it useful!

Regards.
Would you be able to explain, at a high level, how it's implemented? It's not clear to me why we need 3 public hooks to achieve this.