Problem using polyglossia and cleveref (vanilla install). It is not using the selected language.
Example document, where it's used only package's supported languages:
\documentclass{article}
\usepackage{polyglossia}
\setmainlanguage{german}
\setotherlanguage{english}
\usepackage{cleveref}
\begin{document}
\section{Test1}\label{sec:test1}
Blablabla \Cref{sec:test1}.
\selectlanguage{english}
\section{Test2}\label{sec:test2}
Blablabla \Cref{sec:test2}.
\end{document}
The result is presented below. Note that before the second section, we have selected english as the current language, but it appears Abschnitt instead.
The following error also appears when using portuguese as main language (whether using variant=brazilian or not):
! Undefined control sequence.
\__hook begindocument ...ame extras\cref@language
\endcsname }\@ifundefined ...
This problem is caused because cleveref defines the language brazilian instead of portuguese.


cleveref. See section 14.3 of the manual for more information. – cabohah Mar 13 '23 at 07:47\Crefdoes not recognise the change in language in TL 2022. I cannot see how to apply the currently marked duplicate to the OP's current example. That said, I suspect this answer is a suitable duplicate candidate instead. – Dai Bowen Mar 16 '23 at 14:11\providecommand\german@loaded{}and\providecommand\english@loaded{}inside\makeatletter/\makeatotheryour current MWE appears to compile as intended. – Dai Bowen Mar 17 '23 at 17:05