provide parameter to getLocale on generate call