Yoruba is like English in the sense that both have different codified forms in all the places where they are spoken. Nigeria is not the only place where this tongue is in use. In fact, it is not only limited to the African continent. It is also spoken in Europe and the Americas. However, the majority of its speakers live in Nigeria, Benin, and Togo.
https://www.universal-translation-services.com/yoruba-language/