The okText property (string) specifies the text of the "OK" button.
This property only applies to the options object that is passed to the built-in dialog methods:
"OK"
DayPilot.Modal.alert("Hello, world!", {okText: "Close"});