Sofia Vergara's ex called her ''classless'' for speaking Spanish.

The 'Modern Family' star - who hails from Colombia - is currently stuck in a court battle with Nick Loeb over the pair's frozen embryos and in a new letter submitted to the court, Nick slams the actress for speaking in her native language.

In the letter, he wrote: ''I like spending time with you out at night much more than any of my friends. What I do not like and what I will not put up with anymore is the Spanish, and no I do not like hanging out with you when you speak in Spanish, with others at the table or out with us.

''I may as well be alone and for someone who cares so much for what other people think, I am surprised that you think its ok. Not only is it rude and disrespectful, it is classless. And for you to then berate, embarrass, and humiliate me in front of others when I ask you to stop is not happening anymore.

''You tell me, I need to remind you, and then I do and you make fun of the situation. I should never of let this get this far, but I have some boundaries that I have let you cross, and this is one of them. It's not ok, you will not do this anymore, or I will just get up, leave and go. (sic)''

Meanwhile, Sofia previously insisted she isn't worried if she portrays a stereotype in her acting career as she knows it is important to have representation for all races on screen.

She shared: ''What's wrong with being a stereotype? Gloria's character is inspired by my mom and my aunt. They are both Latin women who grew up in Colombia, like me. They love colour, prints and shoes ...

''It upsets me when Latinos complain about Gloria. I am grateful for the opportunity because the gringos have let me in with this strong accent I have. Eight years ago nobody had an accent like this on television.''