Added setLocale to api calls.