% arara: pdflatex
\documentclass{article}

\usepackage{tracklang}

% NB ngerman babel option now discouraged but the captions hook
% is still \captionsngerman so the tracklang dialect label here
% needs to be mapped to "ngerman".

\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}
