allow locale to be an array of locales