An official language is a language which a country or territory decides is to be used for official purposes within its borders and which is legally defined as such.