The de facto official languages in Bosnia & Herzegovina are Bosnian, Serbian and Croatian.

English is lingua franca and will serve you well while travelling, especially in urban centers.