tobychui / zoraxy

A general purpose HTTP reverse proxy and forwarding tool. Now written in Go!
https://zoraxy.arozos.com
GNU Affero General Public License v3.0
2.28k stars 129 forks source link

[ENHANCEMENTS] Multilanguage support #236

Open fcwys opened 3 weeks ago

fcwys commented 3 weeks ago

Expect the Web interface to support multiple languages

tobychui commented 3 weeks ago

Hey @fcwys ,

I am not sure why you have this expectation but currently Zoraxy is offered in English only. If you want other language supports, feel free to create a PR and add localization support in the front-end files which you can find inside the src/web/ folder.

I do have plans for localization in different languages but that is currently not my highest priority (Still got load balancer, HA features and better logging waiting for me to implement). That is why if you want this feature asap, your contributions matters :)

ewenlau commented 1 week ago

@tobychui

I'd love to translate Zoraxy in french, but I have no idea how to implement it code-wise. Shouldn't translations be done outside of the html file in a dedicated file?

tobychui commented 1 week ago

@ewenlau Thank you for your willingness to contribute!

The truth is, I am the only maintainer for the UI and I don't have that much time in maintaining the localization system (even if I design and implement it). The primary reason is that Zoraxy have way more UI elements than other open source projects due to its UX first design philosophy, so it is much harder to create a localization system for it especially I only work on this project part-time during weekends.

If you can find me someone who knows basic HTML + CSS + JavaScript and willing to maintain the localization system for Zoraxy, I can implement the framework for the localization system and then we can start creating a contribution guide for localization / translations.