react-landing-page-template-2021
react-landing-page-template-2021 copied to clipboard
Language selection
Describe the solution you'd like I'm looking for a way to add support for a few languages. The way I imagine that is that you can see the flag icon in the header and after clicking it, you can see other flags that will convert the webpage to another language.
There are a few problems with the fact that not all the strings in the page come from config/index.json
. However the real problem for me is that I don't know how o dynamically change the content of the config/index.js
, so that the correct language is reloaded. Should I add another field in the config/index.js
or create something like config/index-nl.js
?
I'm not experienced frontend developer so I don't really know the conventions.
Thanks