summaryrefslogtreecommitdiff
path: root/macros/generic/tracklang/samples/regions/sample-regions2-map.tex
blob: b32c9eb13050d7ae55b2c2282c3fcf3e57fdd905 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
% 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}