I'm trying to use hyperref for references, but by default it outputs them in English like "chapter 2". According to Hyperref ignores \setdefaultlanguage from polyglossia, doing
\usepackage[bulgarian]{hyperref}
Should do the trick, but this gives me a cryptic error:
! Package xkeyval Error: `bulgarian' undefined in families `Hyp'.
See the xkeyval package documentation for explanation.
Type H <return> for immediate help.
...
l.4319 \ProcessKeyvalOptions{Hyp}
Note that it works for german. Here is my styling:
\ProvidesPackage{style}
\usepackage{fontspec}
\setmainfont[Ligatures=TeX]{DejaVu Serif}
\setsansfont[Ligatures=TeX]{DejaVu Sans}
\setmonofont[Ligatures=TeX]{DejaVu Sans Mono}
% \newfontfamily{\TelSubstFont}[Ligatures=TeX]{Cantarell}
\usepackage{polyglossia}
\setmainlanguage{bulgarian}
\setdefaultlanguage{bulgarian}
\usepackage{minted}
\usepackage[bulgarian]{hyperref}
\hypersetup{pdflang=bg}
\usepackage[numbers]{natbib}
P.S. I'm still new to LaTeX, using XeLaTeX to compile the document.

