\ProvidesPackage{packages/language_selector}

\DeclareOption{french}{
	\def\langoption{french}
	\newcommand{\lang}[2]{#1}
	\newcommand{\langtitle}[2]{\title{#1}}
	\newcommand{\langchapter}[2]{\chapter{#1}}
	\newcommand{\langsection}[2]{\section{#1}}
	\newcommand{\langsubsection}[2]{\subsection{#1}}
	\newcommand{\langsubsubsection}[2]{\subsubsection{#1}}
	\newcommand{\langsubsubsubsection}[2]{\subsubsubsection{#1}}
	\newcommand{\langnewcites}[3]{\newcites{#1}{#2}}
}

\DeclareOption{english}{
	\def\langoption{english}
	\newcommand{\lang}[2]{#2}
	\newcommand{\langtitle}[2]{\title{#2}}
	\newcommand{\langchapter}[2]{\chapter{#2}}
	\newcommand{\langsection}[2]{\section{#2}}
	\newcommand{\langsubsection}[2]{\subsection{#2}}
	\newcommand{\langsubsubsection}[2]{\subsubsection{#2}}
	\newcommand{\langsubsubsubsection}[2]{\subsubsubsection{#2}}
	\newcommand{\langnewcites}[3]{\newcites{#1}{#3}}
}

\ProcessOptions\relax

% Format
\RequirePackage[\langoption]{babel}
