From 685e3321c41fcb5c417d15cbf13568e64f47b9ec Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Mon, 19 Feb 2024 15:52:34 +0100 Subject: [PATCH] fix --- docs/scripts/mkdocs_tx.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/scripts/mkdocs_tx.py b/docs/scripts/mkdocs_tx.py index c098c1ceb..28b51f5f1 100755 --- a/docs/scripts/mkdocs_tx.py +++ b/docs/scripts/mkdocs_tx.py @@ -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")