Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Feb 19, 2024
1 parent 3e2d8e9 commit 6684c49
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion website/scripts/transifex_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,16 @@ def create_transifex_config():
f.write("[main]\n")
f.write("host = https://www.transifex.com\n\n")

if os.path.isfile(f"{root}/mkdocs_tx.yaml"):
if os.path.isfile(f"{root}/mkdocs_tx.yml"):
print(f"Found mkdocs config translated content")
f.write(f"[o:{TX_ORGANIZATION}:p:{TX_PROJECT}:r:site_navigation]\n")
f.write("resource_name = site navigation\n")
f.write("file_filter = mkdocs_tx.<lang>.md\n")
f.write(f"source_file = mkdocs_tx.yaml\n")
f.write(f"source_lang = {TX_SOURCE_LANG}\n")
f.write(f"type = YAML_GENERIC\n\n")
else:
print("No translation of mkdocs config found")

for file in glob.iglob(
current_dir + "/../documentation/**/*.fr.md", recursive=True
Expand Down

0 comments on commit 6684c49

Please sign in to comment.