a whim
Dirá que actuar es un capricho y que me olvide de ello.
She'll say that acting is a whim and that I should forget about it.
— La Sociedad de los Poetas Muertos (1989)
This isn't a whim.
Un capricho, tal vez no es buena idea.
A whim, perhaps not a good idea.
— El hombre de la tierra (2007)
Today I’m going to treat myself.
A veces te puedes dar un capricho con algún lujo.
Sometimes you can treat yourself to a little luxury.