mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Polished issue template
This commit is contained in:
parent
eb84c6957c
commit
49488ef118
40
.github/ISSUE_TEMPLATE/translate.yml
vendored
40
.github/ISSUE_TEMPLATE/translate.yml
vendored
@ -1,17 +1,26 @@
|
|||||||
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:
|
||||||
|
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: |-
|
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) %}{{ {
|
{% macro t(key) %}{{ {
|
||||||
"language": "en",
|
"language": "en",
|
||||||
"direction": "ltr",
|
"direction": "ltr",
|
||||||
@ -48,17 +57,6 @@ body:
|
|||||||
"toc.title": "Table of contents",
|
"toc.title": "Table of contents",
|
||||||
"top.title": "Back to top"
|
"top.title": "Back to top"
|
||||||
}[key] }}{% endmacro %}
|
}[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
|
render: jinja
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
Loading…
Reference in New Issue
Block a user