From 88f30e9cdb3c2c00ac002f4b3b70eec08ca4ab7a Mon Sep 17 00:00:00 2001 From: signedav Date: Mon, 9 Oct 2023 17:43:45 +0200 Subject: [PATCH] get the slug --- docs/.utils/transifex_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/.utils/transifex_utils.py b/docs/.utils/transifex_utils.py index a551c1bb6..e18d441c8 100644 --- a/docs/.utils/transifex_utils.py +++ b/docs/.utils/transifex_utils.py @@ -26,7 +26,7 @@ def create_transifex_config(): # Get relative path of file relative_path = os.path.relpath(file, start=root) - tx_slug = frontmatter.load(file).get("tx_slug", None) + tx_slug = slugify(relative_path) if tx_slug: print(f"Found file with tx_slug defined: {relative_path}, {tx_slug}")