You do this to fool Google and get you indexed in several languages, Google may think that is a different website and it will index it in that way. If you care about that then this could be an option, if you only want it because is pretty then don't waste your time on this.
An example of this is that if you search for "Alojamiento De Imágenes" you will get
https://es.imgbb.com/ as the first result.
The downside is the potential penalty because a subdomain represents a different website so you have to deal with canonical tags to avoid duplicated content.
This needs some extra coding, please understand that I'm not available for this.