Skip to content

Demonstrate how i18N could work with webpack and rails #120

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

Closed
justin808 opened this issue Oct 14, 2015 · 2 comments
Closed

Demonstrate how i18N could work with webpack and rails #120

justin808 opened this issue Oct 14, 2015 · 2 comments

Comments

@justin808
Copy link
Member

The other question I have is, how should I manage I18n? ... Is there a way to integrate Rails I18n into this React+Webpack+Rails integration?

That's a great question. I'm guessing, not having done it with this setup, that you could do something like this:

https://github.com/fnando/i18n-js#rails-app-without-asset-pipeline

We'd love to see a pull request example of how this can be done.

2015-10-14_16-35-12

@rstudner
Copy link
Contributor

I think using i18n.js to server up the asset files from the rails side is one option, and then have the client side stub out the same method and do some sort of node/yml lookup. i'll tinker with this and see what can be done.

@justin808
Copy link
Member Author

See shakacode/react_on_rails#212

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