% This file is part of babel. For further details see:
% https://www.ctan.org/pkg/babel
\ifx\BabelBeforeIni\undefined
  \PackageError{babel}%
    {This file is a component of babel and cannot\MessageBreak
     be loaded directly. I'll stop immediately}%
    {Just use babel as documented.}%
  \stop
\fi
% Check before it’s the ldf
\begingroup
  \makeatletter
  \gdef\BabelSerbianIniTag{sr}%
  \ifx\bbl@inidata\@undefined
    \def\bbl@elt#1#2#3#4{%
      \ifnum\csname l@#1\endcsname=\l@serbian
        \in@{latn}{#3}%
        \ifin@\gdef\BabelSerbianIniTag{sr-Latn}\fi
        \def\bbl@elt##1##2##3#4{}%
      \fi}%
    \bbl@languages
  \fi
\endgroup
\BabelBeforeIni{\BabelSerbianIniTag}{%
}
\endinput
