[Tex/LaTex] Is it possible to keep the translation together with original text

conditionalslanguages

I have an English article in LaTeX, which I'm going to translate to Russian. I want to keep my translation in sync with the original text. It means that I want every paragraph to stay as close to its original version as possible. Ideally like this:

\documentclass{article}
\UseLanguage{English} % or Russian
\begin{document}
The technology described in the article is very complex.
  \inRussian{Технология, описанная в статье, очень сложна.}
\end{document}

The preamble will specify which language to use and the document will be automatically compiled for this selected language. Is there any packages that will enable me to translate the article in such a way?

Best Answer

Define two macros, and swap their definitions as needed

\newcommand{\inRussian}[1]{#1}

\newcommand{\inEnglish}[1]{}

or define one macro

\newcommand{\EngOrRus}[2]{#1}

and change #1 to #2 when you want to switch language.