I need to support localization in my app. I have the i18next figured out, but want to handle the switching of content in different languages as easily as possible. I'm pulling my data in via REST. So I figured a nice way to handle this would be depending on the language setting chosen, the datasource would be set.
Ex.
if French = use datasource1
if English = use datasource 2
But I have no idea how or where to do this. Any suggestions for a newbie?