Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could you create a translation system? #149

Open
cherinyy opened this issue Apr 17, 2018 · 3 comments
Open

Could you create a translation system? #149

cherinyy opened this issue Apr 17, 2018 · 3 comments

Comments

@cherinyy
Copy link

I think website should have multiple language versions.

@lgarron
Copy link
Collaborator

lgarron commented Apr 18, 2018

A good goal! In fact, this came up at the HSTS meetup: https://docs.google.com/document/d/1d21wtTCQ-a6vN7yDwyhLkuBpgmLoJCKMI7aRrXNBIbI/edit#bookmark=id.rnxjoi2ypbuw

Unfortunately, I never had the time to act on it. One-off Google sites also didn't have a good mechanism for accommodating translations. If someone contributes a PR to add support without increasing future maintenance burden (apart from the string translations themselves), @nharper might be able to look into a way to translate the site using Google's process, similar to Chromium.

@ExE-Boss
Copy link

ExE-Boss commented May 1, 2018

This could potentially be done using fluent.js npm, which is the JS implementation of Project Fluent.

To do this server-side, it might be easier to use some templating and fluent-rs Crates.io, since Rust is compiled to a native binary like Go, but I don’t know how well those two languages interface with each other.

@lgarron
Copy link
Collaborator

lgarron commented May 2, 2018

I think it would be strongly preferable to do this using the existing languages.

There are mainly two kinds of strings:

  • Static, in the HTML.
  • Server-side, returned via the API.

It would be nice to handle both in Go, although a smooth solution in JS can be useful for most users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants