Translate the name

How we could to create an plugin thats add a floating dialog box together the mouse with a translation?
It’s could be usefull to we use plugins from another languages without need to translate them.
We need to create a offline library of words or, use a free API.
I tried a thing, but didn’t worked yet. haha.
translater.rb (2.2 KB)