I don’t believe discriminating is the correct word for it. Otherwise you can see every requirement as discriminating (e.g. I have my PhD in Law but can’t be a First Officer at AeroLogic). If you want to be a pilot, learn to fly. Want to speak German, learn.
Language discrimination would take place if they say “you can’t join because you speak with an accent”.