Pali & Nepali
They are different languages. Pali, the traditional language of Theravada Buddhism, is a literary language, related to Sanskrit, dating roughly from around the start of the current era (give or take a couple of centuries). Nepali is a modern language, descended from Sanskrit and so loosely related to Pali, but very different in terms of its grammar, phonetics, etc. I’ve actually studied both Pali & Nepali - Indian languages are kind of a thing for me (to the confusion of friends and family) so let me know if you have other similar questions. Maybe I could confuse you too?