It depends on the work you are going to be doing. For example, if you are going to do research, then it is more important that you speak and write fluently in English, than whatever language is spoken in the country you'll be working in.
Though being fluent in the local language will, of course, make your life a lot easier