In order to work with the extension, take a look at the docs for this other extension that I developed. The infrastructure involved with this extension is almost identical to the one for that extension.
In the near future I will extend the documentation for the Translate Selected Text project.