I would like to use algorithm2e
with translated keywords option (e.g. frenchkw
), which should be working according to the documentation, but it doesn't do nothing for me.
\usepackage[vlined, lined, french, frenchkw]{algorithm2e}
\begin{algorithm}[H]
\KwData{this text}
\KwResult{how to write algorithm with \LaTeX2e }
initialization\;
\While{not at end of this document}{
read current\;
\eIf{understand}{
go to next section\;
current section becomes this one\;
}{
go back to the beginning of current section\;
}
}
\caption{How to write algorithms}
\end{algorithm}
Result, notice how Algorithm caption is correctly translated, but keywords are not.