realtux / mbox

MaterializeCSS Compatible Alert, Confirmation, and Custom Boxes
24 stars 7 forks source link

locale option not working if not set globally #18

Closed kounelios13 closed 6 years ago

kounelios13 commented 6 years ago

In the following code close_speed is working but mbox seems to ignore the locale option

mbox.alert("Hello",{locale:'el',close_speed:2000});
realtux commented 6 years ago

Likely because that object sets to core.options and locale needs to be at core.locate.