Skip to content

Commit

Permalink
invert
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Feb 18, 2024
1 parent 4677a77 commit bd142cf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion website/scripts/mkdocs_tx.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ def create_translation_source(config, source_path, source_language):
for lang in plugin["i18n"]["languages"]:
print(lang["locale"])

tx_cfg = {"nav": config["nav"]}
nav_config = []
for _entry in config["nav"]:
nav_config.append({v: k for k, v in _entry.items()})

tx_cfg = {"nav": nav_config}

tx_cfg["theme"] = {"palette": []}
for palette in config["theme"]["palette"]:
Expand Down

0 comments on commit bd142cf

Please sign in to comment.