I don't understand the cause of my problem:
export const getLocale = (userConfig, knownLocales) => {
for(let i=0; i<knownLocales.length; i++){
if(userConfig.locale===knownLocales[i]){
}
} return userConfig.locale;
}
I would like to understand where I am making the mistake. 🙁