We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dede66 commit 7c1c487Copy full SHA for 7c1c487
1 file changed
python_docs_theme/__init__.py
@@ -1,6 +1,7 @@
1
from __future__ import annotations
2
3
import gettext
4
+import os
5
from pathlib import Path
6
7
TYPE_CHECKING = False
@@ -16,7 +17,7 @@
16
17
def setup_translations(app):
18
translation = gettext.translation(
19
domain="messages",
- localedir=str(THEME_PATH / "locales"),
20
+ localedir=os.fspath(THEME_PATH / "locales"),
21
languages=[app.config.language],
22
fallback=True,
23
)
0 commit comments