In Disney's Encanto there is a scene which involves Mirabel, her father Agustín and her cousin Dolores. Mirabel and her father have discovered a secret which Dolores, thanks to her awesome hearing, is also aware of. Dolores then runs off and Mirabel states that she is going to tell everybody the secret, to which her father Agustín says:
—¡Miércoles!
This expression is left in Spanish in the original English version as well as in other versions such as Portuguese, Italian, French, German and others. Only some versions such as the Japanese one do translate the expression, but they do not translate it literally to wednesday, as it must have another, different meaning in this context. So, as that expression may be something only the Spanish speakers are able to understand, what does it mean and why is it used here?