It seem's that I'm doing something wrong for localizing siunitx. What could it please be?
Here is the code:
\documentclass[11pt,a4paper,german]{article}
\usepackage[ngerman]{babel}
\usepackage{fontspec}
\usepackage{siunitx} %Einheiten
\selectlanguage{german}
\sisetup{
locale = DE ,
per-mode = symbol, %nichts ist ^-1 symbol
}
%\selectlanguage{german} % oder lokal umstellen
\begin{document}
Dieser Bereich geht von \SIrange{0}{100}{\joule}
Dieser Bereich geht von \SIrange{0}{100}{\joule}\selectlanguage{german}
\end{document}
And in the attached picture there is the output using lualatex. The to should be a bis or a symbol like –.
Thank you very much.
Best Answer
Thanks to @clemens I used
german
with babel and that doesn't work. Therefore using just ngerman (new german, because of a change in spell and grammar checking) localisation works now.