Open ghost opened 6 years ago
I believe you are asking about being able to translate the contents of an entire ZeroNet page using online APIs.
This would be useful, although should certainly be an opt-in thing, as it would require sending the site address to an online server and having it send back the translated HTML.
Essentially a ZeroNet site would have to be created that can read other sites and send the HTML data off to Google APIs to be translated. I do not believe any changes to the core infrastructure would be required (and should not be done as this relies on 3rd party, proprietary services).
If there is a JS or Python translation library that could do it locally, then that'd be another story.
0net supports plugins, correct? I assume it should be possible to supply this functionality as a 3rd-party plugin. Besides, I don't think many people really want external integrations in the main codebase.
Another option would be to allow the site to supply its own translation files listed in something like a This is apparently already a thing.translation.json
file, which could be chosen from using the 0 menu. It could even be possible to allow user-supplied translations as well, splitting up the burden of translation. That's functionality I would love to see in the main codebase.
I'm not sure what you mean. For the site messages you can use the built-in, json based translator solution. If you want to translate the user submitted content, then it's much harder and probably you need to use a third party service for that (eg. google translate) via a browser plugin
I like the idea of anoadragon453 Essentially a ZeroNet site would have to be created that can read other sites and send the HTML data off to Google APIs to be translated.
I believe that you need to make an API translator for websites. This is a very convenient function but in the zeronet translator from the browser does not work. I very often use an interpreter, it is also part of anonymity.