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

Provide facility for machine translation of resources.json in a separate project #147

Closed
MrCsabaToth opened this issue Oct 2, 2016 · 8 comments
Labels
enhancement New feature or request help wanted Contributions welcome

Comments

@MrCsabaToth
Copy link
Contributor

Here is a simple node.js app, it uses Google Translate:
https://github.com/gdgfresno/translateResources/

I generated Spanish, Hmong and Armenian translations for ValleyDevFest 2016 to support our largest local ethnic groups.

@MrCsabaToth
Copy link
Contributor Author

BTW, it'd be good to have the language selection popup on the top drawer too

@ozasadnyy
Copy link
Member

@MrCsabaToth, looks interesting! How can we integrate this into Hoverboard?

@ozasadnyy ozasadnyy added the enhancement New feature or request label Nov 15, 2016
@MrCsabaToth
Copy link
Contributor Author

The best would be to make it part of the build process. Since if you add a term only into the en resource (but not the other ones) the page/site stops functioning. I didn't look at yet how I could make this part of polymer's pre-build process. Right now it's a node app, and the calls are simple translate calls (no API key needed). In my app I had Spanish, Hmong and Armenian translations.

@MrCsabaToth
Copy link
Contributor Author

Thinking more: this machine translation probably should not overwrite non machine translations, so probably we need to protect those entries in the resource file somehow. So we need to think more about that.

@ozasadnyy
Copy link
Member

Seems like time to use custom build for Polymer CLI

@MrCsabaToth
Copy link
Contributor Author

Since resources.json is not a flat key-value pair list any more, I need to enhance the translation script first.

@ozasadnyy
Copy link
Member

@MrCsabaToth can you make script translate only string values?

@ozasadnyy ozasadnyy added the help wanted Contributions welcome label Jul 10, 2018
@abraham
Copy link
Member

abraham commented Aug 11, 2019

This sounds neat but it's implementation will be very dependent on #454. Seeing as this is so old I'm going to close it. Once #454 is completed if there is still interest a new issue can be created.

@abraham abraham closed this as completed Aug 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Contributions welcome
Projects
None yet
Development

No branches or pull requests

3 participants