The three official languages are spoken in Bosnia and Herzegovina: Bosnian, Croatian and Serbian. For the local population it is of great importance to appoint the language you speak. In the practical sense, it is one and the same language.
The differences are similar to the differences between American and British English. Before the war in former Yugoslavia, the language was called Serbo-Croatian / Croatian-Serbian language. This title is no longer used today. Bosnian / Croatian / Serbian belong to a group of Slavic languages. Many words are similar to Czech or Slovak, and even the Polish and Ukrainian. Language that is spoken in Bosnia and Herzegovina belongs to the same group of languages as Russian, but still is significantly different.
In Republika Srpska, most signs are written in the Cyrillic alphabet, including even the road signs, so it is hard to know where you are unless you know the script. The Federation of BIH in use is only Latin alphabet. It is very common in cities that you will meet people who speak English.