fix to make config.setLanguage dynamically affect api calls