are you talking about formatting?
here are some examples of ways ive seen it done:
outright using a different language
“Hi,” Bob said.
“Skfofhe fjen qpsk,” Ana replied.
Bob squinted. “Sorry, what was that?”
adding a translation
“Hi,” Bob said.
“Akfjgn rjfn.” Hello.
“Huh?”
replacing dialogue with the translation
“Hi,” Bob said.
“Greetings,” Ana replied.
Bob couldn’t understand, she was speaking in a different language. “Huh?”
replacing dialogue with description
“Hi,” Bob said.
Ana replied with something incomprehensible but friendly.
“I’m gonna assume you said hi back.”