I joined this community because the answer with the highest upvotes is wrong. I understand there is no universal right or wrong here, but here is an argument from a business/economic perspective that makes the suggestion to learn and speak the local community language professionally a shot in a foot.
Computer work is not English Work
this is pretty much wrong. If you work in software engineering and speak any language other than English, you have a handicap, often times tremendous, and sometimes fatal to your career and paycheck.
However, everyone wants to believe Computer work is not English Work.
Dig deeper:
Everyone wants to believe their language is not inferior to English
language
Hence the problem. They dislike you because you have an advantage over them and this advantage is not perceived to be due to your efforts, but due to luck: societies that speak English have accumulated overwhelmingly greater economic power and you were born into one.
Your best course of action:
- Stick to people who treat you well, want to learn from you, and catch up with you. Ideally someone who will also teach you something that is worth your time learning.
- Minimize your interactions with people who dislike you and drag you down.
Nothing more you can do. Do not try to convince those who dislike you speaking English of anything, it's a waste of time.
A personal detour: I often get hateful treatment for speaking English, then I tell them that English is not my first language, not the second either. Then they get depressed and I feel like I would rather have them dislike me a bit than make them deeply sad inside. Still I speak English regardless of their attitude because my paycheck, skills, and career depend on it. I've been in this situation many time myself for many years and got dragged down a lot by adapting to local languages despite its economic inefficiencies. And oh boy I paid for it...
I might be turning this answer into too long to read, but I have to clarify a few important criteria here.
Even though the apparent issue in question is interpersonal relationship, it is greater than that. It is about money and a lot of it. About pay inequality, about one language giving more opportunities than the other to the worker, to their family, their children, adding up over the lifetime.
If you communicate in a language that is inferior in that particular business, you will suffer opportunity cost. Less pay in the long run, that is. Focus on mastering another language instead of doing something else. Instead of just learning basics of it and spending your time mastering new or superior technologies in the language of the community they were created in (English for software that is).
The line is not easy to see when comparing English to German or Japanese for example. Compare it to a language of any low income country and the point will become much clearer. The pay discount for speaking a low income country language will be huge.
Language is not a race that people cannot change. It is something that can be learned but at a great cost.
There is no absolute right/wrong when it comes to personal preferences, but it is wrong from economic perspective for somebody to drag down a more productive colleague over their sense of unfairness.
The the solution is just to avoid such interaction, keep your pay secret from your local colleagues if you can and do not make it obvious that you can accomplish as much or more with less effort speaking just English. I would recommend reading The fair wage-effort hypothesis and unemployment paper by Janet Yellen, former FED chair. It is a pay-effort issue at its core and you should treat it as such with all the seriousness it demands.