Exonym and endonym

An exonym is a common, external name for a geographical place, group of people, individual person, or a language/dialect, that is used only outside that particular place, group, or linguistic community. Exonyms not only exist for historico-geographical reasons, but also in consideration of difficulties when pronouncing foreign word

https://en.wikipedia.org/wiki/Exonym_and_endonym