translation and internationalization
Opened this issue · 1 comments
Hi,
thanks for providing this good hydra companion :)
I'd like to install it for some french users but it will be easier for them if we can translate UI.
I can work on it, but I don't know anything about i18n stuff with golang, do you have any opinion? A library of choice?
Hello.
In my opinion, the best way to translate the login page is to translate it into JavaScript. Now there are many cases when the page is rendering using ReactJS, AngularJS and etc. So almost all content of the page is into minified JavaScript files. We will have to impose restrictions on writing the UI to find all strings requiring translation. It's much easier if the UI will translate itself on his own.
I can add the value of the header Accept-Language
to the template data. After that, you can render this value on the login page and then use any of existed JavaScript translation libraries.
Does this solution suit for you?