Closed robinschwab closed 5 months ago
This is not an siunitx
issue: rather, translator
doesn't seem to be picking up the correct relationship between Swiss German and German (for which there is a translation of to (numerical range)
). Please report at https://github.com/cgnieder/translations/issues. A demo:
\documentclass{article}
\usepackage[english,nswissgerman,german]{babel}
\usepackage{translations}
\DeclareTranslation{English}{to (numerical range)}{to}
\DeclareTranslation{German}{to (numerical range)}{to}
\begin{document}
\selectlanguage{english}
\GetTranslation{to (numerical range)}
\selectlanguage{nswissgerman}
\GetTranslation{to (numerical range)}
\selectlanguage{german}
\GetTranslation{to (numerical range)}
\end{document}
I opened an issue at translations
.
In the meantime a more elegant workaround is to use \DeclareLanguageAlias{nswissgerman}{swissgerman}
instead of my proposed \sisetup{range-phrase=~bis~}
.
When I print a number range in a document with
nswissgerman
as the language option forbabel
then I get a strange English output: «2 °C to (numerical range) 10 °C»This does not happen when I use
german
as the language option. I get «2 °C bis 10 °C» instead.Expected behaviour: Same output with
nswissgerman
as withgerman
.