iaincollins / nextjs-starter

A starter project for Next.js with authentication
https://nextjs-starter.now.sh
ISC License
1.37k stars 423 forks source link

i18next support #85

Open bennygenel opened 6 years ago

bennygenel commented 6 years ago

Added i18next support https://github.com/iaincollins/nextjs-starter/issues/59

I took most of the implementation from with-i18next example. I added _app.js and exported it with translate HOC to inject i18n to all child components. Implementation also support XHR translation requests from the server. I implemented a custom fetch request. With the use of locale library server gets the browser language and then language is being passed to pages. I also added a dropdown to show language changes. A more detailed explanation might be needed though.

iaincollins commented 6 years ago

This is amazing! Sorry for the delay I'm on holiday the moment but this looks really great!

iaincollins commented 6 years ago

I know it's been a while, I've had to prioritise fixing a couple of critical issues first - they are now resolved and hope to take a look at this soon.