Polished issue template

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

View File

@ -1,17 +1,26 @@
name: Translate
description: 'Help translate Material into more languages'
title: 'New translation: {Insert language}'
labels: [enhancement]
description: Add localization for a new language
title: 'New language: {replace with language name}'
body:
- type: markdown
- type: checkboxes
attributes:
label: Contribution guidelines
description: Please read the contribution guidelines before proceeding.
options:
- label: I've read the [contribution guidelines](https://github.com/squidfunk/mkdocs-material/blob/master/CONTRIBUTING.md) and wholeheartedly agree
required: true
- type: checkboxes
attributes:
label: Language availability
description: Please ensure that the language you're adding isn't already available
options:
- label: I've checked the [list of available languages](https://bit.ly/33vFDD0)
required: true
- type: textarea
attributes:
label: Translation
description: Please translate the labels on the right, e.h. "Copy to clipboard", etc.
value: |-
## Instructions
1. Check, if your language is already available: [here](https://bit.ly/33vFDD0)
2. If it isn't, please translate the labels on the right:
```jinja
{% macro t(key) %}{{ {
"language": "en",
"direction": "ltr",
@ -48,17 +57,6 @@ body:
"toc.title": "Table of contents",
"top.title": "Back to top"
}[key] }}{% endmacro %}
```
- type: textarea
attributes:
label: Translation
description: Put your translated file here. The text is automatically formatted as Jinja code
placeholder: |-
{% macro t(key) %}{{ {
"language": "en",
"direction": "ltr",
...
}[key] }}{% endmacro %}
render: jinja
validations:
required: true