tmate-io / tmate-master

Homepage and HTML client
15 stars 19 forks source link

Internationalization of the websockets interface #12

Open nicopace opened 3 years ago

nicopace commented 3 years ago

Hello @nviennot (and all that contribute to the project!), Thanks for such an amazing project!

We are integrating tmate to the LibreRouter.org, a Mesh Wireless Router that is Free/Libre open source software and hardware, and it is targetted at an international audience.

For now we are using tmate (that itself is in english, but that's fine), and making available the websocket interface through a mobile webapp that is embedded in this routers.

We would like for the strings within the websocket interface (the "session starting", "reconnecting", ...) to be localizable.

I've been checking the possibilities offered by Elixir's Phoenix, and there seems to be a library that enables localization of those strings: https://phrase.com/blog/posts/i18n-for-phoenix-applications-with-gettext/

It could be applied to the rest of the interface... but for us it would be enough to work on the websockets part.

We would contribute with the translation to spanish and portuguese once it comes to be.

thanks!

nicopace commented 3 years ago

It looks that there is already work in progress in relation to it, but it doesn't seem to have gottten to the websockets part: https://github.com/search?q=org%3Atmate-io+gettext&type=code