We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30e0399 commit ade4d17Copy full SHA for ade4d17
1 file changed
tools/update-zola-translations.py
@@ -21,8 +21,11 @@
21
# Merge changes from .po files into config.yaml
22
languages = config['languages']
23
sources = config['translations']
24
-for po_path in glob('po/content.*.po'):
25
- lang = po_path.removeprefix('po/content.').removesuffix('.po')
+for index_path in glob('content/_index.*.md'):
+ lang = index_path.removeprefix('content/_index.').removesuffix('.md')
26
+ po_path = f"po/content.{lang}.po"
27
+ if not os.path.exists(po_path):
28
+ continue
29
30
# Add a new section to TOML if needed
31
if lang not in languages:
0 commit comments