I have the following example document where I'm using polyglossia
and cleveref
. The default name for table in spanish is cuadro. How can I change it into tabla and propagate this change to cleveref?
Here is what I tried:
\documentclass[10pt,a4paper]{article}
\usepackage{polyglossia}
\setdefaultlanguage{spanish}
\gappto\captionsspanish{\renewcommand{\tablename}{Tabla}}
\usepackage{cleveref}
%\crefname{table}{tabla}{tablas}
%\Crefname{table}{Tabla}{Tablas}
\begin{document}
Teste \Cref{tbl01}.
\begin{table}[h]
\caption{Teste.}
\label{tbl01}
\begin{tabular}{lll}
a & b & c \\
d & e & f \\
g & h & i
\end{tabular}
\end{table}
\end{document}
I've also tried with the commented lines. In both cases, the result was: