Sadly I do not know a way to do backward searches with translations. But if it is always german maybe we could use the german words as keys or, what would be a better solution, find a way to get the languages from linkedin in english in the first place. I would be very surprised if there is no locale at all, that one can set for the api requests. And if for any reason this (or a similar) method is needed after all, using a dictionary would make it a lot cleaner instead of having a case statement.