How do you say in Persian "on the way"
Hello,
can you help me translating the following two sentences with the phrase “on the way”, "on my way" in them.
1. On the way (on my way) to class, I usually listen to Persian music.
2. On the way to the gym, I ran into my friends.
Thank you in advance for your help.