diff --git a/material/overrides/hooks/translations.py b/material/overrides/hooks/translations.py index 6a523f698..35b8c2d9c 100644 --- a/material/overrides/hooks/translations.py +++ b/material/overrides/hooks/translations.py @@ -40,7 +40,7 @@ def on_page_markdown(markdown: str, *, page: Page, config: MkDocsConfig, files): # Collect all existing languages names: dict[str, str] = {} known: dict[str, dict[str, str]] = {} - for path in glob("src/templates/partials/languages/*.html"): + for path in glob("material/templates/partials/languages/*.html"): with open(path, "r", encoding = "utf-8") as f: data = f.read() diff --git a/src/overrides/hooks/translations.py b/src/overrides/hooks/translations.py index 6a523f698..35b8c2d9c 100644 --- a/src/overrides/hooks/translations.py +++ b/src/overrides/hooks/translations.py @@ -40,7 +40,7 @@ def on_page_markdown(markdown: str, *, page: Page, config: MkDocsConfig, files): # Collect all existing languages names: dict[str, str] = {} known: dict[str, dict[str, str]] = {} - for path in glob("src/templates/partials/languages/*.html"): + for path in glob("material/templates/partials/languages/*.html"): with open(path, "r", encoding = "utf-8") as f: data = f.read()