Open bennygenel opened 6 years ago
This is amazing! Sorry for the delay I'm on holiday the moment but this looks really great!
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.
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 withtranslate
HOC to injecti18n
to all child components. Implementation also support XHR translation requests from the server. I implemented a customfetch
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.