Skip to content

Commit

Permalink
get the slug
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav committed Oct 9, 2023
1 parent 3598b99 commit 88f30e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/.utils/transifex_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 88f30e9

Please sign in to comment.