Encode forced subtitles using mkvmerge

I have a video in the MKV format. The video is in English, but there are some foreign language parts. I want subtitles to appear when any foreign language is being spoken.

linux, mkvmerge