added useGlobalLocale to update dojo.locale