docs.selfprivacy.org/translate_docs.sh

21 lines
312 B
Bash
Raw Normal View History

2021-11-08 14:12:13 +00:00
for inputFile in $(ls src/ru/src)
do
2021-11-08 14:12:13 +00:00
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 ../../
2021-11-08 13:21:31 +00:00
buildRussianTranslations