% arara: pdflatex
\documentclass{article}

\usepackage{tracklang}

\TrackLanguageTag{de-US-1996}
\SetTrackedDialectLabelMap{\TrackLangLastTrackedDialect}{ngerman}

\TrackLanguageTag{en-MT}
\SetTrackedDialectLabelMap{\TrackLangLastTrackedDialect}{british}

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

\newcommand{\test}[1]{%
 \section{#1}
 \selectlanguage{#1}%
 \SetCurrentTrackedDialect{#1}%
 Language tag: \CurrentTrackedLanguageTag.
 (tracklang dialect label: \CurrentTrackedDialect.)

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


\begin{document}

\test{ngerman}

\test{british}

\end{document}
