<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{animals2}[2016/10/06 v1.2 (NLCT) Sample package to test tracklang.sty]

\RequirePackage{tracklang}[2016/10/07]

\DeclareOption*{\TrackLanguageTag{\CurrentOption}}
\ProcessOptions

\AnyTrackedLanguages
{}
{% fetch locale information from the operating system
  \ifx\TeXOSQueryLangTag\undefined
    \TrackLangFromEnv
  \else
    % texosquery v1.2 available
    \TeXOSQueryLangTag{\langtag}
    \TrackLanguageTag{\langtag}
  \fi
}

% default definitions
\newcommand\catname{cat}
\newcommand\dogname{dog}
\newcommand\ladybirdname{bishy-barney-bee}

\newcommand*{\RequireAnimalsDialect}[1]{%
  \TrackLangRequireDialect{animals2}{#1}%
}

\AnyTrackedLanguages
{%
  \ForEachTrackedDialect{\this@dialect}{%
    \RequireAnimalsDialect\this@dialect
  }%
}
{% no tracked languages, default already set up
}

\endinput
</pre></body></html>