Kitzur Shulchan Aruch (6:3) writes:
אסור להוציא שם שמים לבטלה וכל המוציא שם שמים לבטלה עובר על מצות עשה
דכתיב את ה' אלהיך תירא וכתיב אם לא תשמור וגו ליראה את השם הנכבד
והנורא וזהו מכלל היראה שלא להזכיר שמו הגדול כי אם בדרך שבח וברכה
במה שהוא מחויב או בדרך לימוד ויירא ויזדעזעו אבריו בשעה שהוא מזכיר
את השם יתברך שמו אבל לא להוציאו חס ושלום לבטלה ולא שם המיוחד בלבד
אלא כל השמות המיוחדים לשמו יתברך ולא לבד בלשון הקודש אסור אלא
אפילו בכל לשון אסור
It is forbidden to say G-d's name (lit. ''the Heavenly Name'') in
vain, and everyone who says G-d's name in vain transgresses a
positive commandment, as it is written: ''The Lord your G-d you
shall fear;'' and it is (again) written: ''If you will not observe
... to fear the glorious and awesome Name.'' This (we learn) from
the concept of fear, that one should not mention His great Name
except by way of praise or blessing whenever required, or when
(Torah) learning. One should be fearful and one's entire body
tremble when mentioning the name, blessed be His name, but one
should not say it G-d forbid, in vain; And (this applies) not only
to the special Name but to all the names specially referring to
Him, may He be blessed. It is not just in (Hebrew) the Holy Tongue,
that (mentioning the Name) is forbidden, but even in any language it
is forbidden.