disintegrator / next-with-lingui

A Next.js project that uses LinguiJS for internationalization
MIT License
27 stars 10 forks source link

Notes #1

Open tricoder42 opened 6 years ago

tricoder42 commented 6 years ago

Hey @disintegrator, this looks really awesome!

I tried to improve it, but LinguiJS is missing few features:

So, I think for now you did the best what you can. I'll take a look next week how we could improve LinguiJS API to provide smoother implementation in SSR apps.

disintegrator commented 6 years ago

Can't believe I forgot to say this sooner... Thank you for checking this work out! It's really great to have your support 🙂

cjayyy commented 5 years ago

Is there any progress on this issue? I am wondering how to edit the implementation to

support reloading of messages without page refresh @lingui/loader

tricoder42 commented 5 years ago

Not directly, but I've just bootstrapped a Next.js project couple of days ago. I'm learning to use and understand the framework while working on LinguiJS v3. So, there is a progress, but still nothing specific. I should have more info in next few weeks.

cjayyy commented 5 years ago

Awesome, can't wait to see the results. Please refer to this thread in case of any ideas.

Thanks so much for great Lingui and your precious time! Love it :)

iaincollins commented 5 years ago

@disintegrator @tricoder42 Hi both!

Thanks so much for your work!

I'm happy to contribute to other items on this list if we can wrangle the this example back to a working state! I'm also hoping there is something I am missing about exports that someone can suggest when they see the problem. :-)

iaincollins commented 5 years ago

BTW, as announced at ReactEurope by @timneutkens, Next.js will have /api/ route support, which I think will be great for making it easy to facilitate loading catalogs in a Single Page App.

e.g. You could call an endpoint via fetch and have your app fetch and load a new catalog at run time without an app reload.

When this is working again (and the functionality settled) it would be great to see this example in next.js/examples, especially as it works so well with serverless deployments.