\documentclass{article}
\usepackage{polyglossia}
\setdefaultlanguage{english}
\setotherlanguage{sanskrit}
%\setotherlanguage{quechua}
\newfontfamily\sanskritfont{Latin Modern Roman}[Ligatures=TeX]
\usepackage{glossaries-extra}
\makeglossaries
\begin{document}
Something
\end{document}
