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 0152244 commit 685e332
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/scripts/mkdocs_tx.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,11 @@ def update_config(config_path, source_path, source_language):
lang["palette"] = copy.deepcopy(config["theme"]["palette"])
i = 0
for palette in tx["theme"]["palette"]:
lang["palette"][i]["toggle"]["name"] = palette["toggle"][
"name"
]
_name = (
palette["toggle"]["name"]
or config["theme"]["palette"][i]["toggle"]["name"]
)
lang["palette"][i]["toggle"]["name"] = _name
i += 1
except KeyError:
print("No theme/palette/toggle/name to translate")
Expand Down

0 comments on commit 685e332

Please sign in to comment.