docs.selfprivacy.org/translate_docs.sh
2021-11-08 16:12:13 +02:00

21 lines
312 B
Bash
Executable file

for inputFile in $(ls src/ru/src)
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