Browse Source

Fixed en docs

pull/2/head
Illia Chub 8 months ago
parent
commit
d2fe4991f9
No known key found for this signature in database GPG Key ID: 5D3581534C02467A
  1. BIN
      __pycache__/constants.cpython-39.pyc
  2. 2
      constants.py
  3. 9
      translate_docs.sh

BIN
__pycache__/constants.cpython-39.pyc

Binary file not shown.

2
constants.py

@ -1,3 +1,3 @@
TRANSLATE_API_ENDPOINT_URL = "https://api-free.deepl.com/v2/translate"
USAGE_API_ENDPOINT_URL = "https://api-free.deepl.com/v2/usage"
API_ACCESS_KEY = ""
API_ACCESS_KEY = "7e628486-345d-9260-0518-a74ade0b1661:fx"

9
translate_docs.sh

@ -1,8 +1,9 @@
export ruInputFiles=$(ls src/ru/src)
inputFiles=$(ls src/ru/src/*.md)
outputFiles=$(ls src/en/src/*.md)
for inputFile in ${ruInputFiles}
for inputFile,outputFile in inputFiles,outputFiles
do
python3.9 ${1} --file src/ru/src/${inputFile} --output src/en/src/${inputFile}
python3.9 ${1} --file ${inputFile} --output ${outputFile}
done
buildEnglishTranslation()
@ -19,4 +20,4 @@ buildRussianTranslations()
buildEnglishTranslation
cd ../../
buildRussianTranslations
buildRussianTranslations

Loading…
Cancel
Save