Polished issue template

This commit is contained in:
squidfunk 2021-06-29 11:06:39 +02:00
parent eb84c6957c
commit 49488ef118

View File

@ -1,64 +1,62 @@
name: Translate name: Translate
description: 'Help translate Material into more languages' description: Add localization for a new language
title: 'New translation: {Insert language}' title: 'New language: {replace with language name}'
labels: [enhancement]
body: body:
- type: markdown - type: checkboxes
attributes: attributes:
value: |- label: Contribution guidelines
## Instructions description: Please read the contribution guidelines before proceeding.
options:
1. Check, if your language is already available: [here](https://bit.ly/33vFDD0) - label: I've read the [contribution guidelines](https://github.com/squidfunk/mkdocs-material/blob/master/CONTRIBUTING.md) and wholeheartedly agree
2. If it isn't, please translate the labels on the right: required: true
- type: checkboxes
```jinja attributes:
{% macro t(key) %}{{ { label: Language availability
"language": "en", description: Please ensure that the language you're adding isn't already available
"direction": "ltr", options:
"clipboard.copy": "Copy to clipboard", - label: I've checked the [list of available languages](https://bit.ly/33vFDD0)
"clipboard.copied": "Copied to clipboard", required: true
"edit.link.title": "Edit this page", - type: textarea
"footer.previous": "Previous", attributes:
"footer.next": "Next", label: Translation
"footer.title": "Footer", description: Please translate the labels on the right, e.h. "Copy to clipboard", etc.
"header.title": "Header", value: |-
"meta.comments": "Comments", {% macro t(key) %}{{ {
"meta.source": "Source", "language": "en",
"nav.title": "Navigation", "direction": "ltr",
"search.config.lang": "en", "clipboard.copy": "Copy to clipboard",
"search.config.pipeline": "trimmer, stopWordFilter", "clipboard.copied": "Copied to clipboard",
"search.config.separator": "[\s\-]+", "edit.link.title": "Edit this page",
"search.placeholder": "Search", "footer.previous": "Previous",
"search.reset": "Clear", "footer.next": "Next",
"search.result.initializer": "Initializing search", "footer.title": "Footer",
"search.result.placeholder": "Type to start searching", "header.title": "Header",
"search.result.none": "No matching documents", "meta.comments": "Comments",
"search.result.one": "1 matching document", "meta.source": "Source",
"search.result.other": "# matching documents", "nav.title": "Navigation",
"search.result.more.one": "1 more on this page", "search.config.lang": "en",
"search.result.more.other": "# more on this page", "search.config.pipeline": "trimmer, stopWordFilter",
"search.result.term.missing": "Missing", "search.config.separator": "[\s\-]+",
"select.language.title": "Select language", "search.placeholder": "Search",
"select.version.title": "Select version", "search.reset": "Clear",
"skip.link.title": "Skip to content", "search.result.initializer": "Initializing search",
"source.link.title": "Go to repository", "search.result.placeholder": "Type to start searching",
"source.file.date.updated": "Last update", "search.result.none": "No matching documents",
"source.file.date.created": "Created", "search.result.one": "1 matching document",
"tabs.title": "Tabs", "search.result.other": "# matching documents",
"toc.title": "Table of contents", "search.result.more.one": "1 more on this page",
"top.title": "Back to top" "search.result.more.other": "# more on this page",
}[key] }}{% endmacro %} "search.result.term.missing": "Missing",
``` "select.language.title": "Select language",
- type: textarea "select.version.title": "Select version",
attributes: "skip.link.title": "Skip to content",
label: Translation "source.link.title": "Go to repository",
description: Put your translated file here. The text is automatically formatted as Jinja code "source.file.date.updated": "Last update",
placeholder: |- "source.file.date.created": "Created",
{% macro t(key) %}{{ { "tabs.title": "Tabs",
"language": "en", "toc.title": "Table of contents",
"direction": "ltr", "top.title": "Back to top"
... }[key] }}{% endmacro %}
}[key] }}{% endmacro %} render: jinja
render: jinja validations:
validations: required: true
required: true