Skip to content

Commit f4e4d71

Browse files
committed
Updated issue templates
1 parent 96d845f commit f4e4d71

File tree

3 files changed

+58
-56
lines changed

3 files changed

+58
-56
lines changed

.github/ISSUE_TEMPLATE/04-add-translations.yml

+52-52
Original file line numberDiff line numberDiff line change
@@ -20,61 +20,61 @@ body:
2020
description: >-
2121
Please translate the labels on the right. For new languages, translate
2222
each line. For existing languages, only translate lines containing the
23-
icon :arrow_left: and remove the icon before submitting.
23+
:arrow_left: icon and remove the icon before submitting.
2424
[More](https://squidfunk.github.io/mkdocs-material/contributing/adding-translations/#translations_1)
2525
value: |-
2626
{% macro t(key) %}{{ {
27-
"language": "en",
28-
"direction": "ltr",
29-
"action.edit": "Edit this page",
30-
"action.skip": "Skip to content",
31-
"action.view": "View source of this page",
32-
"announce.dismiss": "Don't show this again",
33-
"blog.archive": "Archive",
34-
"blog.categories": "Categories",
35-
"blog.categories.in": "in",
36-
"blog.continue": "Continue reading",
37-
"blog.draft": "Draft",
38-
"blog.index": "Back to index",
39-
"blog.meta": "Metadata",
40-
"blog.references": "Related links",
41-
"clipboard.copy": "Copy to clipboard",
42-
"clipboard.copied": "Copied to clipboard",
43-
"consent.accept": "Accept",
44-
"consent.manage": "Manage settings",
45-
"consent.reject": "Reject",
46-
"footer": "Footer",
47-
"footer.next": "Next",
48-
"footer.previous": "Previous",
49-
"header": "Header",
50-
"meta.comments": "Comments",
51-
"meta.source": "Source",
52-
"nav": "Navigation",
53-
"readtime.one": "1 min read",
54-
"readtime.other": "# min read",
55-
"rss.created": "RSS feed",
56-
"rss.updated": "RSS feed of updated content",
57-
"search": "Search",
58-
"search.placeholder": "Search",
59-
"search.share": "Share",
60-
"search.reset": "Clear",
61-
"search.result.initializer": "Initializing search",
62-
"search.result.placeholder": "Type to start searching",
63-
"search.result.none": "No matching documents",
64-
"search.result.one": "1 matching document",
65-
"search.result.other": "# matching documents",
66-
"search.result.more.one": "1 more on this page",
67-
"search.result.more.other": "# more on this page",
68-
"search.result.term.missing": "Missing",
69-
"select.language": "Select language",
70-
"select.version": "Select version",
71-
"source": "Go to repository",
72-
"source.file.contributors": "Contributors",
73-
"source.file.date.created": "Created",
74-
"source.file.date.updated": "Last update",
75-
"tabs": "Tabs",
76-
"toc": "Table of contents",
77-
"top": "Back to top"
27+
"language": "en ⬅️",
28+
"direction": "ltr ⬅️",
29+
"action.edit": "Edit this page ⬅️",
30+
"action.skip": "Skip to content ⬅️",
31+
"action.view": "View source of this page ⬅️",
32+
"announce.dismiss": "Don't show this again ⬅️",
33+
"blog.archive": "Archive ⬅️",
34+
"blog.categories": "Categories ⬅️",
35+
"blog.categories.in": "in ⬅️",
36+
"blog.continue": "Continue reading ⬅️",
37+
"blog.draft": "Draft ⬅️",
38+
"blog.index": "Back to index ⬅️",
39+
"blog.meta": "Metadata ⬅️",
40+
"blog.references": "Related links ⬅️",
41+
"clipboard.copy": "Copy to clipboard ⬅️",
42+
"clipboard.copied": "Copied to clipboard ⬅️",
43+
"consent.accept": "Accept ⬅️",
44+
"consent.manage": "Manage settings ⬅️",
45+
"consent.reject": "Reject ⬅️",
46+
"footer": "Footer ⬅️",
47+
"footer.next": "Next ⬅️",
48+
"footer.previous": "Previous ⬅️",
49+
"header": "Header ⬅️",
50+
"meta.comments": "Comments ⬅️",
51+
"meta.source": "Source ⬅️",
52+
"nav": "Navigation ⬅️",
53+
"readtime.one": "1 min read ⬅️",
54+
"readtime.other": "# min read ⬅️",
55+
"rss.created": "RSS feed ⬅️",
56+
"rss.updated": "RSS feed of updated content ⬅️",
57+
"search": "Search ⬅️",
58+
"search.placeholder": "Search ⬅️",
59+
"search.share": "Share ⬅️",
60+
"search.reset": "Clear ⬅️",
61+
"search.result.initializer": "Initializing search ⬅️",
62+
"search.result.placeholder": "Type to start searching ⬅️",
63+
"search.result.none": "No matching documents ⬅️",
64+
"search.result.one": "1 matching document ⬅️",
65+
"search.result.other": "# matching documents ⬅️",
66+
"search.result.more.one": "1 more on this page ⬅️",
67+
"search.result.more.other": "# more on this page ⬅️",
68+
"search.result.term.missing": "Missing ⬅️",
69+
"select.language": "Select language ⬅️",
70+
"select.version": "Select version ⬅️",
71+
"source": "Go to repository ⬅️",
72+
"source.file.contributors": "Contributors ⬅️",
73+
"source.file.date.created": "Created ⬅️",
74+
"source.file.date.updated": "Last update ⬅️",
75+
"tabs": "Tabs ⬅️",
76+
"toc": "Table of contents ⬅️",
77+
"top": "Back to top ⬅️"
7878
}[key] }}{% endmacro %}
7979
render: Jinja
8080
validations:

material/overrides/hooks/translations.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,14 @@ def on_page_markdown(markdown: str, *, page: Page, config: MkDocsConfig, files):
8686
# Assemble GitHub issue URL
8787
link = urlparse(issue_url)
8888
link = link._replace(query = urlencode({
89-
"template": "04-add-a-translation.yml",
89+
"template": "04-add-translations.yml",
9090
"title": f"Update {name} translations",
9191
"translations": "\n".join([
9292
"{% macro t(key) %}{{ {",
9393
",\n".join(translations),
9494
"}[key] }}{% endmacro %}"
95-
])
95+
]),
96+
"country-flag": f":flag_{countries[code]}:"
9697
}))
9798

9899
# Add translation

src/overrides/hooks/translations.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,14 @@ def on_page_markdown(markdown: str, *, page: Page, config: MkDocsConfig, files):
8686
# Assemble GitHub issue URL
8787
link = urlparse(issue_url)
8888
link = link._replace(query = urlencode({
89-
"template": "04-add-a-translation.yml",
89+
"template": "04-add-translations.yml",
9090
"title": f"Update {name} translations",
9191
"translations": "\n".join([
9292
"{% macro t(key) %}{{ {",
9393
",\n".join(translations),
9494
"}[key] }}{% endmacro %}"
95-
])
95+
]),
96+
"country-flag": f":flag_{countries[code]}:"
9697
}))
9798

9899
# Add translation

0 commit comments

Comments
 (0)