Updated issue templates

This commit is contained in:
squidfunk
2023-09-21 15:33:49 +02:00
parent 96d845fc15
commit f4e4d71343
3 changed files with 58 additions and 56 deletions

View File

@@ -86,13 +86,14 @@ def on_page_markdown(markdown: str, *, page: Page, config: MkDocsConfig, files):
# Assemble GitHub issue URL
link = urlparse(issue_url)
link = link._replace(query = urlencode({
"template": "04-add-a-translation.yml",
"template": "04-add-translations.yml",
"title": f"Update {name} translations",
"translations": "\n".join([
"{% macro t(key) %}{{ {",
",\n".join(translations),
"}[key] }}{% endmacro %}"
])
]),
"country-flag": f":flag_{countries[code]}:"
}))
# Add translation