optional parameter locale should be named localecode as specified by the documentation