<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% arara: pdflatex
\documentclass[ngermanDE,USenglish]{article}

\usepackage[main=ngerman]{babel}
\usepackage{regions2}

\newcommand{\test}[1]{%
 \section{#1}
 \selectlanguage{#1}%
 \SetCurrentTrackedDialect{#1}%
 Language: \CurrentTrackedLanguageTag.

 \unitname: \weightunit, \lengthunit, \currencyunit.
}



\begin{document}
\test{USenglish}

\test{ngerman}

\end{document}
</pre></body></html>