I am working on a document that uses both the polyglossia and the csquotes package. However polyglossia stops the automatic switch between quotation styles (according to the selected language) from working. If we take the example from this answer and additionally load the polyglossia package, the quotation style remains the same:
\documentclass{article}
\usepackage{csquotes}
\usepackage{polyglossia}
\setdefaultlanguage{english}
\setotherlanguages{french, american, ngerman, spanish}
%\DeclareQuoteStyle{ngerman}%
% {\quotedblbase}
% {\textquotedblright}
% [0.05em]
% {\textquoteleft}
% {\textquoteright}
\begin{document}
\enquote{UK English}
\selectlanguage{american} \enquote{US English}
\selectlanguage{spanish} \enquote{Spanish}
\selectlanguage{french} \enquote{Français}
\selectlanguage{ngerman} \enquote{Deutsche}
\end{document}
Note that compared to the original example, I have also already removed the language options from the \documentclass command, since they would interfere with the \setotherlanguages command of the polyglossia package, resulting in an error ("Command \textspanish already defined.").
I also alredy removed the autostyle option of the csquotes package, since for some reason, the package ends up not knowing the appropriate styles ("No style for language ''.", even though according to this answer, it's supposed to do the trick):
A similar problem was reported here, which is why I tried redefining the corresponding quotation styles as suggested in the answer, however it doesn't have any effect.
(EDIT: I also removed the fontenc, inputenc, and babel packages from the original example.)




babelandpolyglossia. Either one of them is enough. – Javier Bezos Jan 22 '22 at 13:04babelis simply a remnant of the original MWE. I didn't know how it relates topolyglossiaand that I should only use either one. I've removed it now, but that doesn't have any effect. In the original project, which is mostly legacy code that I shouldn't tamper with,polyglossiais used (andbabelisn't loaded as far as I can tell). – mapf Jan 22 '22 at 13:24