-
Notifications
You must be signed in to change notification settings - Fork 363
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
Create example on other repos #158
Comments
I can't agree more. I'm a bit overwhelmed by work atm, but hopefully at the end of February I could focus on this. |
We're migrating our website to jslingui now, but it's still a work-in-progress. After a few hours of work I finally figured out how to integrate it with Gatsby.
Hot reloadingYou can directly use the
|
@morloy This is great stuff, thank you for sharing! I've never worked with Gatsby, but as a static site tool it always operates in development mode? |
No, but when you build the site, I think everything gets bundled and minified with webpack. So no need to actually "compile" the |
The problem might be when you use variables or plurals inside translations. Then you'll probably have to use either compiled message catalog or |
This is really great! I'm gonna create showcase page in docs soon. Thank you for your effort! 👍 |
Hey there @tricoder42, thanks for all your effort thus far! Lingui looks like a super interesting project. Specifically, we've found the locale files very easy to work with and we would love to use it more broadly. We've been experimenting with it at work and had some good results in the past, but then some not-so-good results more recently.
Is there a sense of when more up-to-date instructions for integration with some JS frameworks might exist, or any other pointers you could pass along? Again, this isn't urgent and it's cool what you've done so far, but if you have any more info it would be great to hear 😄. |
I created a Gatsby starter that makes use of js-lingui: |
Can this be closed? I know, this can be never-ending story, but it's not issue at all. More examples are welcomed and I'm thinking about migrate react-intl branch of react-starter-kit |
You're right, the scope of this issue is too broad. Let's focus on:
... and then close this issue. What do you mean by |
Hi @tricoder42, react-starter-kit have it's own message extraction script, I believe this can be omitted if I migrate to lingui |
Closing this one in favor of #278, CRA example will be added as part of 3.0 release |
For those who come across this thread seeking a working example with Next.js, you can find it here now: https://github.com/zeit/next.js/tree/canary/examples/with-lingui |
To gain visibility I think it would be super useful to demonstrate the integration of js-lingui in other popular frameworks/libs, such as https://github.com/gatsbyjs/gatsby and https://github.com/zeit/next.js.
That's easy to say for me because unfortunately I have no time to contribute pull requests! But this looks like an inspiring project and I think it might deserve to be more visible, especially now that v2 is out.
The text was updated successfully, but these errors were encountered: