Note that since locale was always documented as undefined (by default), it's actually dojo/i18n.js' fault for assuming it's a string, but changing anyway at Colin's request.