We use this expression to wish a good luck.
You can use this phrase in ………… language.
Don’t be nervous, I’m sure, you’ll do fine! Break a leg!
There was no need to wish her to break a leg. She gave an excellent performance.