docs.selfprivacy.org/translate_docs.sh
2021-11-04 17:02:46 +02:00

22 lines
348 B
Bash
Executable file

export ruInputFiles=$(ls src/ru/src)
for inputFile in ${ruInputFiles}
do
python3.9 ${1} --file src/ru/src/${inputFile} --output src/en/src/${inputFile}
done
buildEnglishTranslation()
{
cd src/en/
mdbook build
}
buildRussianTranslations()
{
cd src/ru/
mdbook build
}
buildEnglishTranslation
cd ../../
buildRussianTranslations