\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{animals2}[2026/05/18 v1.6.7 (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
